fsurf(sym(1), [0 1 0 1], 'y', 'EdgeColor', 'none'), this is fun for z axis , how about y axis?
4 次查看(过去 30 天)
显示 更早的评论
fsurf(sym(1), [0 1 0 1], 'y', 'EdgeColor', 'none')
xlabel('x')
ylabel('y')
zlabel('z')
this is fun for z axis , how about y axis?
0 个评论
回答(1 个)
KSSV
2024-3-28
编辑:KSSV
2024-3-28
What you gave is similiar to:
x = linspace(0,1,35) ;
y = linspace(0,1,35) ;
[X,Y] = meshgrid(x,y) ;
Z = ones(size(X)) ;
surf(X,Y,Z,'edgecolor','none')
If you want it along y-axes.
x = linspace(0,1,35) ;
z = linspace(0,1,35) ;
[X,Z] = meshgrid(x,z) ;
Y = ones(size(X)) ;
surf(X,Y,Z,Y,'edgecolor','none')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!