Fill table of NaNs with data though loop
Show older comments
Hello all,
I have a table of NaNs "data" with 100 rows and 6 columns. In a for loop i'm doing some calculations and in every loop get a 10x6 table. I now want to fill my initial Nan table "data" with the new data after every loop, i.e. start with rows 1-10, then 11-20 and so on.
I know this sounds very simple but I am definitely stuck. Also, I'm aware that a table of NaNs is probably not the most prominent way to handle this...
Here's a mwe:
col = NaN(100,1);
allData = table(col,col,col,col,col,col,'VariableNames',{'....'})
[my loop...]
data = [data ; new_rows] %This just appends the data to my Nan table which I don't want
I would be very thankful for suggestions and hints! Thank you
Accepted Answer
More Answers (0)
Categories
Find more on Logical 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!