>> x = rand(3,5) >> y = rand(3,6) >> rank(x)
ans =
3
>> canoncorr(x,y)
Warning: X is not full rank.
> In canoncorr at 88
Warning: Y is not full rank.
> In canoncorr at 97
ans =
0 0
0 0
1.5835 1.7374
0 0
2.0226 -0.9926
Actually both the rank of x and y are 3,but why the matlab reports that X and Y are not full rank?