matrix decision
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I'm trying to write a simple code, but I get error "Error Using==> mldivide" "Matrix dimensions must agree".....
what am i doing wrong?:
d=1000:1:20000;
y1=14400/d;%estimation
y2=(0.0001759/(d^2))*(2-2*cos(9046/d));%exact
plot(d,y1,'r');
hold on;
plot(d,y2);
0 Commenti
Risposta accettata
David Young
il 21 Mar 2012
I think you need
y1=14400./d;%estimation
y2=(0.0001759./(d.^2)).*(2-2*cos(9046./d));
but I see this gives a very big difference between y1 and y2 so I'm not sure if it's entirely right.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!