How to shift contents of a row in a table in matlab
20 次查看(过去 30 天)
显示 更早的评论
Hi all,
I read a csv file into a table in matlab. I would like to shift the contents of some specific rows in the table to the right or to the left. That is, if i have a table of 10 rows and 3 columns and i want to shift the contents of the second row, second column to the right, resulting in a 4 column table and an empty cell in the second row of the second column.
e.g
1 2 3
4 5 6
7 8 9
2 6 8
.
.
.
e.t.c
shifted to:
1 2 3 0
4 0 5 6
7 8 9 0
2 6 8 0
.
.
.
e.t.c
Thank you for your help.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!