Azzera filtri
Azzera filtri

Inner matrix dimensions must agree.

1 visualizzazione (ultimi 30 giorni)
koke
koke il 19 Apr 2013
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

Risposte (1)

Walter Roberson
Walter Roberson il 20 Apr 2013
Use .* instead of *

Categorie

Scopri di più su Function Creation in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by