How to plot planes parallel to the coordinate axes given by
24 次查看(过去 30 天)
显示 更早的评论
How to plot planes parallel to the coordinate axes given by
y = linspace(0,5) ;
x = linspace(0,5) ;
[Y,X] = meshgrid(y,x) ;
Z = 3 ;
surf(X,Y,Z)
hold on
x = linspace(0,5) ;
z = linspace(0,5) ;
[Z,X] = meshgrid(z,x) ;
Y = 2 ;
surf(X,Y,Z)
hold on
y = linspace(0,5) ;
z = linspace(0,5) ;
[Z,Y] = meshgrid(z,y) ;
X = 1 ;
surf(X,Y,Z)
0 个评论
采纳的回答
Voss
2022-7-10
编辑:Voss
2022-7-10
y = linspace(0,5) ;
x = linspace(0,5) ;
[Y,X] = meshgrid(y,x) ;
% Z = 3 ;
Z = 3*ones(size(X));
surf(X,Y,Z)
hold on
x = linspace(0,5) ;
z = linspace(0,5) ;
[Z,X] = meshgrid(z,x) ;
% Y = 2 ;
Y = 2*ones(size(X));
surf(X,Y,Z)
hold on
y = linspace(0,5) ;
z = linspace(0,5) ;
[Z,Y] = meshgrid(z,y) ;
% X = 1 ;
X = ones(size(Y));
surf(X,Y,Z)
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!