I have the following variables in Cell arrays. b_x{k}, x{k}, c{k}.
I want to perform the following operation within the cell array.
D{k} = sqrt((b{k} - x{k}).^2 + (c{k}).^2)
When doing this I realize that these arithmetic operations cannot be done through a cell array. So do I have to do it using generalized operations such as gadd, gsubtract etc? If yes then for the element wise square should I use 'gmultiply' twice? Is there no other way?
Thanks
Best Answer