Add dimensions to a matrix
5 views (last 30 days)
My RHSvec is a 51X21 matrix. kdpolind is 11X51X21. Doing the following:
[RHSval,kprimeind] = max(RHSvec,,2);
gives me a 51X1 RHSval and a 51X1 kprimeind.
if kprimeind is as follows:
then I want to store in kprimeind in kdpolind as
I am unable to do this due to dimensions mismatch. Is there a simple way of doing this?