3d plotting help
Show older comments
I am trying to plot this figure, an airplane wing but I can't seem to get it oriented right. This is the only way I could get it to plot but I want it facing me, not downward as it is now. So x is the x-axis, y is the z-axis, and z is the y-axis. Every time I change something I get an error. Please help. Thank you.
clear
c=1;
t=0.2;
x=linspace(0,c,100);
l=linspace(0,4,100);
y=t*c/0.2*(0.2969*sqrt(x/c)-0.1260*(x/c)-0.3516*(x/c).^2+0.2843*(x/c).^3-0.1015*(x/c).^4);
[X,Z]=meshgrid(x,l);
surf(X,y,Z);
hold on;
surf(X,-y,Z);
2 Comments
Walter Roberson
on 2 Oct 2011
Things are easier with ndgrid() instead of meshgrid()
Sean Smith
on 2 Oct 2011
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Object Properties 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!