Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to solve linear Equations with variable are in matrices form

2 次查看(过去 30 天)
I have to solve follwing equations for T1, when i use follwing code it gives me an error , how can i fix this error and find result for T1..??
% T0*A0 == A_0*T0
% T0*A1+(T1*A0) ==A_0*T1
% T0*A2 + T1*A1 + T2*A0 ==A_0*T2
% T0*B0== B_0
% T0*B1 + T1*B0== zeros(3)
clc
clear all
A0=[-1 0 0;0 -2 0; 0 0 -1];
A1=[0 -1 0; 0 0 0 ; 0 -1 0];
A2=zeros(3);
A_0=[-1 0 0;0 -2 0; 0 0 -1];
B0=[1;0;0];
B_0=[1;0;0];
B1=zeros(3,1);
T0=eye(3);
T2= zeros(3);
syms T1
[T1] = solve(T0*A0 == A_0*T0, T0*A1+(T1*A0) ==A_0*T1, T0*A2 + T1*A1 + T2*A0 ==A_0*T2, T0*B0== B_0, T0*B1 + T1*B0== zeros(3), T1)

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by