Error matrix Dimensions must agree
Mostra commenti meno recenti
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 Commenti
KSSV
il 11 Giu 2020
Check the size of x, it is different from h, k.
wided hechkel
il 11 Giu 2020
Modificato: wided hechkel
il 11 Giu 2020
Risposte (0)
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!