syms Km Zm Ym [2 2]
syms Z R S L
Z=R+S*L
Km=[1 Z; 0 1]
Zm
% Relation between Km and Zm
Zm1_1=(Km1_1/Km2_1)
Zm1_2=(det(Km)/Km2_1)
Zm2_1=(1/Km2_1)
Zm2_2=(Km2_2/Km2_1)

1 comentario

ravi teja
ravi teja el 12 de Oct. de 2021
Zm result in matrix form. which command should be used?

Iniciar sesión para comentar.

 Respuesta aceptada

KSSV
KSSV el 12 de Oct. de 2021

0 votos

syms Km Zm Ym [2 2]
syms Z R S L
Z=R+S*L ;
Km=[1 Z; 0 1] ;
Zm = sym('Zm',[2 2]) ;
% Relation between Km and Zm
Zm(1,1)=(Km1_1/Km2_1) ;
Zm(1,2)=(det(Km)/Km2_1) ;
Zm(2,1)=(1/Km2_1) ;
Zm(2,2)=(Km2_2/Km2_1) ;
Zm
Zm = 

2 comentarios

ravi teja
ravi teja el 12 de Oct. de 2021
thankyou for the answer but i need the Zm matrix with final result performing the calculations. that is Zm is infinite matrix
KSSV
KSSV el 12 de Oct. de 2021
syms Km Zm Ym [2 2]
syms Z R S L
Z=R+S*L ;
Km=[1 Z; 0 1] ;
Zm = sym('Zm',[2 2]) ;
% Relation between Km and Zm
for i = 1:2
for j = 1:2
Zm(i,j) = Km(i,j)/Km(2,1) ;
end
end

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 12 de Oct. de 2021

Comentada:

el 12 de Oct. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by