Info

This question is closed. Reopen it to edit or answer.

How to solve linear Equations with variable are in matrices form

1 view (last 30 days)
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)

Answers (0)

Community Treasure Hunt

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

Start Hunting!