Surface chart using surf
1 次查看(过去 30 天)
显示 更早的评论
I can make a surface chart using the surf with the following information:
I was trying to do:
surf(Ef_teta_T2(:,1),f_vector,teta_i);
...
surf(Ef_teta_T2(:,36),f_vector,teta_i);
But the message appeared:
Error using surf
Z must be a matrix, not a scalar or vector.
The graph I intend to make is the same as this:
I thank you for your help
0 个评论
采纳的回答
更多回答(1 个)
Image Analyst
2020-11-2
Can't you just do
surf(Ef_teta_T2);
2 个评论
Image Analyst
2020-11-2
If you're going to use the surf(x,y,z) version with all of them being vectors, then they all need to have the same length. Yours don't.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!