From: Antonio Baran on
hi, i need add a element in multidimensional matrix
I try this
memoriatd(:,:,1)=[memoriatd(:,:,1);td];
memoriatd is matrix
td is single real number
return this error
??? Subscripted assignment dimension mismatch.
Thakns
From: TideMan on
On May 19, 3:54 pm, "Antonio Baran" <juniorba...(a)gmail.com> wrote:
> hi, i need add a element in multidimensional matrix
> I try this
> memoriatd(:,:,1)=[memoriatd(:,:,1);td];
> memoriatd is matrix
> td is single real number
> return this error
> ??? Subscripted assignment dimension mismatch.
> Thakns

Well, you can't do that.

Perhaps you can show us what you're trying to do with an example.
Say you have a matrix:
M=[1 2 3
4 5 6
7 8 9];
and you want to add a single real number, say 4.
What would you expect the result to be?