How to calculate matrix M*T=T
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    WonJong We
 el 15 de Abr. de 2021
  
    
    
    
    
    Respondida: Stephan
      
      
 el 15 de Abr. de 2021
            T=M*T
how can i calculate T_2, T3???
M =
    1.0000         0         0         0
    0.5000         0    0.5000         0
         0    0.5000         0    0.5000
         0         0         0    1.0000
T =
 500
  T2
  T3
 300
 B=M*T
 B==T
B =
        500
 T3/2 + 250
 T2/2 + 150
        300
ans =
       500 == 500
 T3/2 + 250 == T2
 T2/2 + 150 == T3
       300 == 300
0 comentarios
Respuesta aceptada
  Stephan
      
      
 el 15 de Abr. de 2021
        syms T2 T3
M = [1., 0, 0, 0;...
    0.5, 0, 0.5, 0;...
    0, 0.5, 0, 0.5;...
    0 0 0 1.]
T = [500; T2; T3; 300]
B = M*T
sol = solve(B == T)
sol_T2 = sol.T2
sol_T3 = sol.T3
result:
M =
    1.0000         0         0         0
    0.5000         0    0.5000         0
         0    0.5000         0    0.5000
         0         0         0    1.0000
T =
 500
  T2
  T3
 300
B =
        500
 T3/2 + 250
 T2/2 + 150
        300
sol = 
  struct with fields:
    T2: [1×1 sym]
    T3: [1×1 sym]
sol_T2 =
1300/3
sol_T3 =
1100/3
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

