From: Snow White on 19 May 2010 05:34 number of columns=mxn which is the number of row multiplied by columns "Steven Lord" <slord(a)mathworks.com> wrote in message <hsuib5$hu2$1(a)fred.mathworks.com>... > > "Snow White" <gulesaman(a)gmail.com> wrote in message > news:hsu9tt$r8j$1(a)fred.mathworks.com... > >i want b to be as follows: > > > > b(:,:,1)=[1 1 1;1 1 1...] > > b(:,:,2)=[2 2 2;2 2 2...] > > b(:,:,4)=[4 4 4;4 4 4...] > > That's getting _closer_ to what I asked for, but you're still not there. > SPECIFICALLY how many columns do you want b to have? > > > > I believe what you want, assuming you know how many rows and columns you > want, is: > > b = repmat(reshape(a, 1, 1, []), numRows, numCols, 1) > > -- > Steve Lord > slord(a)mathworks.com > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ >
First
|
Prev
|
Pages: 1 2 3 Prev: Check caller function Next: normpdf works for very small sigma values? |