Error matrix Dimensions must agree
Ältere Kommentare anzeigen
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 Kommentare
KSSV
am 11 Jun. 2020
Check the size of x, it is different from h, k.
wided hechkel
am 11 Jun. 2020
Bearbeitet: wided hechkel
am 11 Jun. 2020
Antworten (0)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!