How to replace values of a variable in a table (in a cell) with nan?
3 次查看(过去 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 中查找有关 Large Files and Big Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!