How to prevent cell array to transpose cell automatically?
Show older comments
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!
Accepted Answer
More Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!