MATLAB: Transposing cell arrays is behaving like cellfun

cell arraytransposition

I was having some strange errors, and eventually figured out that this was going on. Take a simple example.
a = cell(1, 2)
a{1} = 'wx'
a{2} = 'yz'
Now, let's transpose.
EDU>> aT = a'
aT =
[2x1 char] [2x1 char]
EDU>> size(aT)
ans =
1 2
EDU>> size(a)
ans =
1 2
EDU>> aT{1}
ans =
w
x
Isn't this weird? Did I change some setting or something that is messing this up?

Best Answer

That's not what I get. I get that aT is a 2x1 cell array, as you expected.
Could you have somehow redefined the ctranspose function, which is what the "apostrophe" calls? What you do you get when you type
which -all ctranspose
?