Is there any reason why basic math operations don't work with cell arrays? Seems to me it would extremely useful and efficient if you could do the following:
C = [0.7152 1.0000];A = [0.6807 0; 0 1.0000];Apows = {A,A^2,A^3};C*Apows
Result:
Undefined operator '*' for input arguments of type 'cell'.
Expected:
{C*Apows{1},C*Apows{2},C*Apows{3}} =
1×3 cell array
{1×2 double} {1×2 double} {1×2 double}
cellfun(@(x) C*x,Apows,'UniformOutput',false);
ans =
1×3 cell array
{1×2 double} {1×2 double} {1×2 double}
Best Answer