Asterisk appearing during row operation
    34 ビュー (過去 30 日間)
  
       古いコメントを表示
    
When I'm doing row operations on matlab, and i'm trying to make a number zero, an asterisk appears. I dont know why this is.
format rat
B = [-6 8 -9 4 ;4 -3 5 7 ;-9 7 -8 -8 ;4 -3 3 3 ]
B(1,:) = B(1,:)/-6
B(2,:) = B(1,:)*-4 + B(2,:)
B(3,:) = B(1,:)*9 + B(3,:)
B(4,:) = B(1,:)*-4 + B(4,:)
B(2,:) = B(2,:)*(3/7)
B(1,:) = B(2,:)*(4/3) + B(1,:)
0 件のコメント
採用された回答
  Matt J
      
      
 2022 年 10 月 22 日
        
      編集済み: Matt J
      
      
 2022 年 10 月 22 日
  
      Presumably, it's just a display choice to keep things readable. The number there does exist, but they don't want to give you the mistaken impression that it is exactly zero:
B(1,:)
B(1,2)
1 件のコメント
  Steven Lord
    
      
 2022 年 10 月 22 日
				Matt J is correct. From the documentation for the rats function (which uses the same algorithm as format rat): "Asterisks indicate elements that cannot be printed in the allotted space, but which are not negligible compared to the other elements in X."
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Logical についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


