From: Antonio Baran on 18 May 2010 23:54 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 19 May 2010 00:15 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?
|
Pages: 1 Prev: random data between range. Next: Simulations needed for Silcon Waveguide |