How to prevent cell array to transpose cell automatically?
显示 更早的评论
Hi everyone,
I am encountering a problem when running my script. I am running a for loop and storing the data into a cell array as the length changes with every loop. An example of the result is shown below:
14x1 cell
11x1 cell
1x11 cell
14x1 cell
1x14 cell
When the string starts with a zero it automatically transposes from 11x1 to 1x11. And I do not know from upfront which cell will start with a zero. I want to write it to excel into different columns, which works as long as it does not start with zero and therefore does not transpose.
How can I prevent this?
Thanks in advance!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!