How to replace values of a variable in a table (in a cell) with nan?

5 views (last 30 days)
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?

Accepted Answer

VBBV
VBBV on 4 Oct 2022
mycell{5, 1}(1,1).myvariable = nan;
  2 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by