I have recently upgraded MATLAB from R2008b to R2009a and could notice that there is difference in computation results for the same MATLAB code in R2008b and R2009a.
The following code:
[u,i,j] = unique(cell(0,1)) % also try zeros(1,0), zeros(0,0)
gave the following output in R2008b:
u = {} i = [] j = []
but gives the following in R2009a:
u = Empty cell array: 0-by-1 i = Empty matrix: 0-by-1 j = Empty matrix: 0-by-1
Best Answer