Fill table of NaNs with data though loop
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!