using cell to add row
2 次查看(过去 30 天)
显示 更早的评论
xxx={'Lavorato assieme n. giorni',' ',1;'Giorno Positivi e negativi ',' ',2}
if i want to add ("Lavorato xxx',' ',3) in this 3x3 cell how can i write code?
0 个评论
采纳的回答
Stephen23
2023-11-10
xxx = {'Lavorato assieme n. giorni',' ',1;'Giorno Positivi e negativi ',' ',2}
xxx(3,:) = {'Lavorato xxx',' ',3}
0 个评论
更多回答(1 个)
Mann Baidi
2023-11-10
Hi,
I understand you would like to add rows to your cell at the end.
You can do this using the following code:
xxx={'Lavorato assieme n. giorni',' ',1;'Giorno Positivi e negativi ',' ',2}
xxx=[xxx;{'Lavorato xxx',' ',3}]
Hope this helps!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!