Dear All, I have three cell arrays: cv_o, std_m and mean_m. Both cells contains 359 2D matrices. The size of matrices is same. I would like to calculate the root of an equation using the values of these matrices. I tried to calculate fzero by the following way:
for jj=1:359;for i=1:464;for j=1:201;mat(i,j)=cv_o{jj};mstd(i,j)=std_m{jj};mmean(i,j)=mean_m{jj};if mat(i,j) == 0;b(i,j) = 0;elseb(i,j)=fzero(@(x)mat(i,j)-(mstd(i,j)./mmean(i,j)).^x,(0));endendendend
But I got the following error message: Subscripted assignment dimension mismatch. Could someone write me how I should solve calculate the root?
Best Answer