Inner matrix dimensions must agree.

조회 수: 1 (최근 30일)
koke
koke 2013년 4월 19일
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개)

Walter Roberson
Walter Roberson 2013년 4월 20일
Use .* instead of *

카테고리

Help CenterFile Exchange에서 Function Creation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by