フィルターのクリア

Solving Differential equation with multi variables

1 回表示 (過去 30 日間)
Gilad Shaul
Gilad Shaul 2023 年 1 月 10 日
回答済み: Pratheek 2023 年 3 月 1 日
Hi,
I have the following equation:
I want to solve it for P1, when all the other parameters are known:
P0[4x4] matrix
A[4x4] matrix
B[4x1] matrix
K0[1x4] matrix
K1[1x4] matrix
R = 1
Very appritiate any help
Thank you
  1 件のコメント
Torsten
Torsten 2023 年 1 月 10 日
Why is your equation a differential equation ? For me, it looks like a matrix equation.

サインインしてコメントする。

回答 (1 件)

Pratheek
Pratheek 2023 年 3 月 1 日
Hi Gilad Shaul!
I assumed that you mistyped Matrix equation as Differential equation.
I understand that you are trying to solve this matrix equation where only one variable is unkown. You can use the below code to solve the equation.
p0=rand(4);%initializing all variables
a=rand(4);
b=rand(4,1);
k0=rand(1,4);
k1=rand(1,4);
r=1;
syms x1 x2 x3 x4 y1 y2 y3 y4 z1 z2 z3 z4 w1 w2 w3 w4;
p1=[x1 x2 x3 x4;y1 y2 y3 y4; z1 z2 z3 z4; w1 w2 w3 w4];
solx = solve(transpose(a+b*k1)*p1*(a+b*k1)-p1+(transpose(k1-k0))*(r+transpose(b)*p0*b)*(k1-k0)==0);
disp(solx);
Use Solve documentation for your further reference.

カテゴリ

Help Center および File ExchangeEquation Solving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by