Error matrix Dimensions must agree
古いコメントを表示
a=1.2;
x=-a:(2.4/128):a;
[h,k]= meshgrid(-4:0.01:4,0:0.01:11);
y = ((k.*x)./(minus(h,(sign(minus(x,h)).*a)))) + ((k.*a)./(minus(a,(sign(minus(x,h)).*h))));
plot(x,y)

2 件のコメント
KSSV
2020 年 6 月 11 日
Check the size of x, it is different from h, k.
wided hechkel
2020 年 6 月 11 日
編集済み: wided hechkel
2020 年 6 月 11 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!