photo

Erik Sharrer


Last seen: 3년 초과 전 2020년부터 활동

Followers: 0   Following: 0

통계학

Feeds

보기 기준

질문


Need help looping an ode45 function
clear all xo=[0.05; 0]; ts=[0 3]; [t,x]=ode45(@myfun,ts,xo); figure(1) plot(t,x(:,1)) function v = myfun(t,x); zeta=0.9...

4년 초과 전 | 답변 수: 0 | 0

0

답변

질문


How to use ode45 for a row vector
function v = f(t,x); zeta=0.9 m=5; k=1000; c=2.*zeta.*sqrt(m*k); v=[x(2); x(1).*-k/m+x(2).*-c./m]; end and clear all ...

4년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Not sure how to fix my matrix dimension problem
t=0:0.1:4 m=5; k=1000; zeta=[0, 0.1, 0.25, 0.5, 0.75, 0.9, 1]; xo=0.05; vo=0; w=sqrt(k/m) wd=w*sqrt(1-zeta.^(2)) A=(sqrt...

4년 초과 전 | 답변 수: 2 | 0

2

답변