How to make plot3 as surf?
16 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
I have 3 datas in space: x_sec is 97x10, y_sec is 97x10 and z_sec is 1x10 matrices. When I use the plot3(x_sec,y_sec,z_sec) command I get line plotted in 3d. But I want a surface plot using surf. How can I achieve that?

This is a proplleler with a twist.
0 个评论
采纳的回答
Star Strider
2021-4-24
z_sec2 = repmat(z_sec, 97, 1);
then —
figure
surf(x_sec,y_sec,z_sec2)
I have no idea how well that will work because I do not have the data, so you will have to experiment with it.
更多回答(0 个)
另请参阅
类别
在 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!