Fill table of NaNs with data though loop
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!