photo

Sunil Ojwani


2018 年からアクティブ

Followers: 0   Following: 0

統計

All
  • Solver
  • Thankful Level 1

バッジを表示

Feeds

表示方法

質問


how to divide a matrix by its norm in for loop
i want s/|s| s=[x(2)+x(1);x(1)+x(3)]; i write as it for i=1:n s1(i)=x2(i)+x1(i); s2(i)=x1(i)+x3(i); sm(:,i)=...

5年弱 前 | 1 件の回答 | 0

1

回答

質問


Having a system of three state I put the odes in a function and the script to solve the given function I'm getting NaN for output of ode45
my function is function xdot=func4(t,x) A=[0 1 0;0 0 1;-1 -2 -3] B=[0 0;0 1;1 0] C1=[0 1]' C2=[1 0 ;0 1] C3=[1 0]' ...

5年以上 前 | 1 件の回答 | 0

1

回答

回答済み
Having a system of three state I put the odes in a function and the script to solve the given function but now it is executing continuously, so tell me how to stop it?
sorry sir, i tried the solution suggested by you but the result from your solution is not the same as required in this pic...

6年弱 前 | 0

| 採用済み

質問


Having a system of three state I put the odes in a function and the script to solve the given function but now it is executing continuously, so tell me how to stop it?
function xdot=func4(t,x) A=[0 1 0;0 0 1;-1 -2 -3] B=[0 0;0 1;1 0] C1=[0 1]' C2=[1 0 ;0 1] C3=[1 0]' s=[C1*x(1)+C2*[x...

6年弱 前 | 3 件の回答 | 0

3

回答

質問


how can i write square root of mod x1(t)
sqrt(x(1)*t)

6年弱 前 | 1 件の回答 | 0

1

回答