out1.Y=cellfun(@(c) bsxfun(@minus, c,c(100,:)), out1.Y,'uni',0);>> out1.Yans = Columns 1 through 4 [1000x9 double] [1000x9 double] [1000x9 double] [1000x9 double] Columns 5 through 8 [1000x9 double] [1000x9 double] [1000x9 double] [1000x9 double]matrice1=bsxfun(@minus,matrice1, matrice1(100,:)); %%
where matrice1 is the 1000×9 double. What's the difference between this two lines of code? I think there is no difference. Is ir right? Is it the same thing? I would like to do the same thing but the line command is different because in the first code I work with cell array and in the second code I work with simply array.
Best Answer