Matlab : divide cell the same way as matrix
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Maxime Hery
am 12 Mai 2015
Kommentiert: Maxime Hery
am 12 Mai 2015
Hi everyone,
I would like to know why I have differences between a division with cells and with matrix.
For example :
A=rand(3,3); B=rand(3,3);
A1=mat2cell(A,[1 1 1],[1 1 1]);
B1=mat2cell(B,[1 1 1],[1 1 1]);
If I do A/B, I don't have the same result as :
cellfun(@rdivide,A1,B1)
My question is quite simple, why ? and is it possible to obtain the same result ?
Thanks for your advides :)
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!