Error: the surface Z must contain more than one row or column.
조회 수: 2 (최근 30일)
이전 댓글 표시
I am not sure why this error is popping up and won't graph.
h = 0.5:.1:5.0;
b = 0.5:.1:5.0;
Iy = (b.^3.*h)/6;
[x,y] = meshgrid(h,b);
meshc(h,b,Iy)
Error using meshc (line 62)
The surface Z must contain more than one row or column.
Error in DanielleG_Assignment4_18 (line 16)
meshc(h,b,Iy)
Thanks in advance!
댓글 수: 0
채택된 답변
KALYAN ACHARJYA
2020년 12월 7일
편집: KALYAN ACHARJYA
2020년 12월 7일
MATLAB Docs: The function meshc(X,Y,Z) plots the values in matrix Z as heights above a grid in the x-y plane defined by X and Y. The edge colors vary according to the heights specified by Z.
Are you looking for this one?
h = 0.5:.1:5.0;
b = 0.5:.1:5.0;
[x,y] = meshgrid(h,b);
Iy = (x.^3.*y)/6;
meshc(x,y,Iy)
댓글 수: 0
추가 답변 (1개)
KSSV
2020년 12월 7일
h = 0.5:.1:5.0;
b = 0.5:.1:5.0;
[h,b] = meshgrid(h,b);
Iy = (b.^3.*h)/6;
meshc(h,b,Iy)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!