cdottimes Computes the element-wise multiplication between A and B
cmultiscale Multiplies the 2D slices in a 3D array by individual scalars.
SOURCE CODE
0001 function B = tocstruct(A)
0002 ifiscstruct(A)
0003 B = A;
0004 elseif isnumeric(A)
0005 B.real = real(A);
0006 B.imag = imag(A);
0007 else
0008 error('Input does not have the expected format.');
0009 end
0010 end