fsurf(sym(1), [0 1 0 1], 'y', 'EdgeColor', 'none'), this is fun for z axis , how about y axis?

조회 수: 9 (최근 30일)
Xiao yang
Xiao yang 2024년 3월 28일 3:05
댓글: Xiao yang 2024년 3월 29일 2:44
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?

답변 (1개)

KSSV
KSSV 2024년 3월 28일 3:46
편집: KSSV 2024년 3월 28일 3:48
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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by