removing specific rows from char array
    9 ビュー (過去 30 日間)
  
       古いコメントを表示
    
data=['01'; '02'; '03'; '04'; '05'; '06'; '07'; '08'; '09'; '10'];
How I can remove the 1st and 5th columns from data aray?
1 件のコメント
  the cyclist
      
      
 2021 年 8 月 27 日
				data is a 10x2 character array, so it does not have a 5th column. I assume you meant row. See my solution.
採用された回答
  the cyclist
      
      
 2021 年 8 月 27 日
        data=['01'; '02'; '03'; '04'; '05'; '06'; '07'; '08'; '09'; '10'];
data([1 5],:) = []
2 件のコメント
  the cyclist
      
      
 2021 年 8 月 27 日
				data=['01'; '02'; '03'; '04'; '05'; '06'; '07'; '08'; '09'; '10'];
remove = [1 5];
data(remove,:) = []
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Cell Arrays についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!