surfs and meshplot problem
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Hi I want to plot a function of two variables with surfc, I get the error Z must be a matrix not a scalor or vector.
My function is like this: %
Z=exp(M.*log(eps)+v.*eps), M=[1:30] eps=[11:40]
I want to plot surfc(Z,M,eps). could you help me?
0 件のコメント
回答 (2 件)
[M,EPS] = meshgrid(1:30,11:40);
v = 3;
Z = exp(M.*log(EPS)+v.*EPS);
surfc(M,EPS,Z)
set(gcf,'render','zbuf')
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!