Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to solve state space eqution with Euler method ?

1 回表示 (過去 30 日間)
tomer polsky
tomer polsky 2018 年 1 月 3 日
閉鎖済み: John D'Errico 2018 年 1 月 11 日
hello i am trying to solve this eqution
x_diff=A*x+B*U
clc;
clear all;
R=5;L=10e-3;C=10e-6;U=5;
A=[0 1;-1/(C*L) -R/L];
B=[0 1/L];
t_delta=0.1
x=linspace(0,1,20);
size=size(x)
y_0=[0 0]
for i=1:size(2)
y(:,i)=y_0+t_delta*(A*x(:,i)+B*U)
y_0=y(i);
end
this code is to solve this eqution x_diff=A*x+B*U but my x is equel to [x1;x2] meaning that i have a 1 raw vecotr insted of 2 raw vectors , any idea how to solve this problem ?
  2 件のコメント
James Tursa
James Tursa 2018 年 1 月 3 日
This appears to be a re-post of this Question:
In the future, please keep all of your related posts in one thread. It becomes hard to follow when multiple Questions are posted about the same problem.
tomer polsky
tomer polsky 2018 年 1 月 11 日
ye sorry about this

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by