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 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!