How to replace values of a variable in a table (in a cell) with nan?
    5 ビュー (過去 30 日間)
  
       古いコメントを表示
    
Hi all,
I have a 10x1 cell containg 100x32 tables. 
I want to:
mycell{5, 1}.myvariable = nan;
which results in:
Error using  . 
To assign to or create a variable in a table, the number of rows must match the height of the table.
How can I write the code to replace the values of a specified variable with nan?
Can you help please?
2 件のコメント
  Rik
      
      
 2022 年 10 月 4 日
				I'm on mobile so I can't test it, but perhaps this works:
[mycell{5, 1}.myvariable] = deal(NaN);
採用された回答
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Tables についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


