MATLAB Solving equations problem

后端 未结 5 1202
感情败类
感情败类 2021-01-25 17:32

I want to solve these equations using MATLAB and I am sure there is a non zero solution. The equations are:

0.7071*x            + 0.7071*z = x 
  -0.5*x +         


        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-25 17:48

    A = [ 0.7071 0 0.7071 ;
          -0.5 0.7071 0.5 ;
        -0.5 -0.7071 0.5 ];
    B = [1 ; 1 ; 1];
    
    AA = A-diag(B)
    
          -0.2929            0       0.7071
             -0.5      -0.2929          0.5
             -0.5      -0.7071         -0.5
    
    BB = B-B
    
         0
         0
         0
    
    AA\BB
    
         0
         0
         0
    

提交回复
热议问题