I found when I use line comment to erase some my content for a string cell, the cell shape change to row from original column
like this
>> a={'first' …
, 'second' …
, 'third'}
a =
'first' 'second' 'third'
>> a={'first' …
% , 'second' …
, 'third'}
a =
'first'
'third'
I have already tried 2013a and 2015b, they shared the same result.
I just want to change my test case sometime quickly for a simple test, but that messed up the following code with my for loop will use like this
for a_n = a
a_n = a_n{:};
That will be good if I don't comment anything, but failed to only loop once with my first case.
Any answer about why the shape of string cell will change when there are line comments is appreciated.
Best Answer