fork download
  1. >> X = [0 1 -4; 2 -3 2; 5 -8 7]
  2.  
  3. X =
  4.  
  5. 0 1 -4
  6. 2 -3 2
  7. 5 -8 7
  8.  
  9. >> B = [8 1 1]'
  10.  
  11. B =
  12.  
  13. 8
  14. 1
  15. 1
  16.  
  17. >> X\B
  18. Warning: Matrix is close to singular or badly scaled. Results
  19. may be inaccurate. RCOND = 3.416071e-18.
  20.  
  21. ans =
  22.  
  23. 1.0e+16 *
  24.  
  25. -1.1259
  26. -0.9007
  27. -0.2252
  28.  
  29. >> X = vpa(X)
  30.  
  31. X =
  32.  
  33. [ 0, 1.0, -4.0]
  34. [ 2.0, -3.0, 2.0]
  35. [ 5.0, -8.0, 7.0]
  36.  
  37. >> B = vpa(B)
  38.  
  39. B =
  40.  
  41. 8.0
  42. 1.0
  43. 1.0
  44.  
  45. >> X\B
  46. Warning: System is inconsistent. Solution does not exist.
  47.  
  48. ans =
  49.  
  50. Inf
  51. Inf
  52. Inf
  53.  
  54. >>
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty