Inner matrix dimensions must agree.
Afficher commentaires plus anciens
this is matlab verrrry simple program but i have verrrry simple problem :) this is the error ( Error using * Inner matrix dimensions must agree.
Error in vib (line 9)
x=(a1+a2*t)*exp(-wn*t); )
and that is the program
vo=input('vo=');
xo=input('xo=');
wn=input('wn=');
syms t;
syms wn;
a1=xo;
a2=vo+(wn*xo);
t=0:1;
x=(a1+a2*t)*exp(-wn*t);
nx=double( subs(x,'t', t));
figure(1);
plot(t,nx);
what can i do to solve this program
1 commentaire
bym
le 19 Avr 2013
I think you have already resolved this based on this question
Réponses (1)
Walter Roberson
le 20 Avr 2013
0 votes
Use .* instead of *
Catégories
En savoir plus sur Number Theory dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!