Plotting a function...
4 ビュー (過去 30 日間)
古いコメントを表示
I have the following function that I would like to plot.
Gamma = atand((Y)/(X));
Whats the best way to preform this task. Y and X will vary from 0 to 40.
Thanks,
0 件のコメント
採用された回答
Walter Roberson
2011 年 2 月 20 日
[X,Y] = meshgrid(0:.1:40, 0:.1,40);
surf(X, Y, atand(Y ./ X));
8 件のコメント
Matt Tearle
2011 年 2 月 20 日
plot3 is for a curve in space - for each x there's one corresponding y and z, as opposed to a surface where there's a whole range of y values for each x (and vice versa)
その他の回答 (2 件)
Matt Tearle
2011 年 2 月 20 日
[x,y] = meshgrid(0:0.5:40);
gam = atand(y./x);
surf(x,y,gam,'linestyle','none')
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!