Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to solve linear Equations with variable are in matrices form

2 vues (au cours des 30 derniers jours)
Umair Altaf
Umair Altaf le 20 Mar 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
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)

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by