フィルターのクリア

Error: the surface Z must contain more than one row or column.

7 ビュー (過去 30 日間)
Danielle Guariglia
Danielle Guariglia 2020 年 12 月 7 日
回答済み: KSSV 2020 年 12 月 7 日
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!

採用された回答

KALYAN ACHARJYA
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)

その他の回答 (1 件)

KSSV
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)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by