,v1Trying to solve a linear equation matrix with a log of X1-X5 in the matrix. Not sure how to use the log value in simulate to get correct result.
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    

2 comentarios
Respuestas (2)
  Torsten
      
      
 el 1 de Mayo de 2023
        
      Editada: Torsten
      
      
 el 1 de Mayo de 2023
  
      A = [1 0 0 0 0 0.05 0 0 0 0 0;-1 1 0 0 0 0 0.05 0 0 0 0;0 -1 1 0 0 0 0 0.05 0 0 0;0 0 -1 1 0 0 0 0 0.05 0 0;0 0 0 -1 1 0 0 0 0 0.05 0;0 0 0 0 -1 0 0 0 0 0 0.05];
B = [2.903;0; 0; 0; 0; -1.398];
sol = lsqminnorm(A,B);
norm(sol)
A*sol-B
sol(1:5) = exp(sol(1:5));
X = sol(1:5)
nu = sol(6:11)
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


