How to replace values of a variable in a table (in a cell) with nan?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Rik
am 4 Okt. 2022
I'm on mobile so I can't test it, but perhaps this works:
[mycell{5, 1}.myvariable] = deal(NaN);
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Large Files and Big Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!