From: David Bolin on
Hey.

Im in the middle of writing a gui based program. In my gui ive got a 5x15 table and am wondering what command i should use to define one 1x15 row of the table as a variable.

Thankyou so much.
From: Vikas Malik on
"David Bolin" <cruelsinger(a)gmail.com> wrote in message <hsm7fa$h8l$1(a)fred.mathworks.com>...
> Hey.
>
> Im in the middle of writing a gui based program. In my gui ive got a 5x15 table and am wondering what command i should use to define one 1x15 row of the table as a variable.
>
> Thankyou so much.

You can do

z = zeros(5,15) or ones(5,15);

z1 = z(1,:);
z2 = z(2,:);

like this
From: David Bolin on
thankyou

"Vikas Malik" <vikasmalik22(a)gmail.com> wrote in message <hsmdcn$rkr$1(a)fred.mathworks.com>...
> "David Bolin" <cruelsinger(a)gmail.com> wrote in message <hsm7fa$h8l$1(a)fred.mathworks.com>...
> > Hey.
> >
> > Im in the middle of writing a gui based program. In my gui ive got a 5x15 table and am wondering what command i should use to define one 1x15 row of the table as a variable.
> >
> > Thankyou so much.
>
> You can do
>
> z = zeros(5,15) or ones(5,15);
>
> z1 = z(1,:);
> z2 = z(2,:);
>
> like this