From: Wei He on
Hello, everyone.

I generated a matrix 125*16 (matrix1). And then, I want to copy it for 50 time and connected to the end of the first matrix for 80 times in order to produce a 10000*16 (Matrix).

To add it like this : Matrix = [matrix1;matrix;matrix;.....] is troublesome very much.

Is there any convenient way to do it?

Thanks in advance~!!

Wei.
From: us on
"Wei He" <Eric.he(a)hotmail.com> wrote in message <i0f2jb$pqv$1(a)fred.mathworks.com>...
> Hello, everyone.
>
> I generated a matrix 125*16 (matrix1). And then, I want to copy it for 50 time and connected to the end of the first matrix for 80 times in order to produce a 10000*16 (Matrix).
>
> To add it like this : Matrix = [matrix1;matrix;matrix;.....] is troublesome very much.
>
> Is there any convenient way to do it?
>
> Thanks in advance~!!
>
> Wei.

a hint:

help repmat;

us
From: Wei He on
"Wei He" <Eric.he(a)hotmail.com> wrote in message <i0f2jb$pqv$1(a)fred.mathworks.com>...
> Hello, everyone.
>
> I generated a matrix 125*16 (matrix1). And then, I want to copy it for 50 time and connected to the end of the first matrix for 80 times in order to produce a 10000*16 (Matrix).
>
> To add it like this : Matrix = [matrix1;matrix;matrix;.....] is troublesome very much.
>
> Is there any convenient way to do it?
>
> Thanks in advance~!!
>
> Wei.

I currently generate it like this:

matrix = [matrix1;matrix1;matrix1;matrix1;matrix1;matrix1;matrix1;matrix1;matrix1;matrix1];

matrix = [matrix;matrix ;matrix ;matrix ;matrix ;matrix ;matrix ;matrix ];


it still seems not convenient. Is there any fucntion that could define the a specific number of the times?
From: Wei He on
Thanks, us~!

I will try.

"us " <us(a)neurol.unizh.ch> wrote in message <i0f2uj$iht$1(a)fred.mathworks.com>...
> "Wei He" <Eric.he(a)hotmail.com> wrote in message <i0f2jb$pqv$1(a)fred.mathworks.com>...
> > Hello, everyone.
> >
> > I generated a matrix 125*16 (matrix1). And then, I want to copy it for 50 time and connected to the end of the first matrix for 80 times in order to produce a 10000*16 (Matrix).
> >
> > To add it like this : Matrix = [matrix1;matrix;matrix;.....] is troublesome very much.
> >
> > Is there any convenient way to do it?
> >
> > Thanks in advance~!!
> >
> > Wei.
>
> a hint:
>
> help repmat;
>
> us
From: us on
"Wei He" <Eric.he(a)hotmail.com> wrote in message <i0f349$9l$1(a)fred.mathworks.com>...
> "Wei He" <Eric.he(a)hotmail.com> wrote in message <i0f2jb$pqv$1(a)fred.mathworks.com>...
> > Hello, everyone.
> >
> > I generated a matrix 125*16 (matrix1). And then, I want to copy it for 50 time and connected to the end of the first matrix for 80 times in order to produce a 10000*16 (Matrix).
> >
> > To add it like this : Matrix = [matrix1;matrix;matrix;.....] is troublesome very much.
> >
> > Is there any convenient way to do it?
> >
> > Thanks in advance~!!
> >
> > Wei.
>
> I currently generate it like this:
>
> matrix = [matrix1;matrix1;matrix1;matrix1;matrix1;matrix1;matrix1;matrix1;matrix1;matrix1];
>
> matrix = [matrix;matrix ;matrix ;matrix ;matrix ;matrix ;matrix ;matrix ];
>
>
> it still seems not convenient. Is there any fucntion that could define the a specific number of the times?

did you take the time to read what was told you above(?)... or are you simply repeating your OP without reflection...

us