replace value in many colone to one value
    3 ビュー (過去 30 日間)
  
       古いコメントを表示
    
i have matrix  witn n line row
 mtx = [1     1  0  1;
            2    0  1  1;
            3    1  1  1;
            4    1  1  0;
            5    1  1   0 ];    %  and so on    (n rows ) 
and i want to have this to join value colone 2 and 3 and 4 in one colone 
mtx= [1   101;
          2   011;
          3   111;
          4   110;
          5   110];
0 件のコメント
回答 (2 件)
  Bruno Luong
      
      
 2020 年 8 月 19 日
        
      編集済み: Bruno Luong
      
      
 2020 年 8 月 19 日
  
      Single line
mtx*[1 0; 0 100; 0 10; 0 1]
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!


