plotting data in an non orthogonal coordinate system
Show older comments
Hi,
I stored different values in a matrix, values calculated with a formula f based on non otrhogal axis. The values represent forces in geometric surface in a non orthoganal coordinate system.

My question: How to plot the values on the surface in an non orthogonal coordinate system?
Thanks in advance!
Accepted Answer
More Answers (4)
Azzi Abdelmalek
on 7 Feb 2013
Edited: Azzi Abdelmalek
on 7 Feb 2013
close
x=0:0.1:10
y=sin(x)
plot(x,y)
% If you want to plot in the the new coordinate system newvector_j=a+b*j,
% we suppose the unit vector i is the same
a=1;
b=2;
hold on
plot([0 a],[0 b],'g') % new axis
plot(xlim ,[0 0],'g')
new_x=y*a+x
new_y=y*b
hold on,plot(new_x,new_y,'r')
2 Comments
Azzi Abdelmalek
on 7 Feb 2013
Ok, what is your new coordinate system?
1 Comment
Azzi Abdelmalek
on 7 Feb 2013
Sorry, it's not t but x, I've edited the answer. 'r' (red) , 'g' (green) are the color of the plots. copy and past the code, then run it. For your 3D plot I will try something
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!