For Programmers: Free Programming Magazines  


Home > Archive > Matlab > June 2007 > assign a new array with n-1 row









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author assign a new array with n-1 row
pangzi

2007-06-20, 7:19 pm

hi all

I have a small problem here.

If I have a N by 1 array
What command do I need to type in to assign the values in this array
to a new one without the first row or the first two rows?

thanks
dave

2007-06-20, 7:19 pm

pangzi wrote:
>
>
> hi all
>
> I have a small problem here.
>
> If I have a N by 1 array
> What command do I need to type in to assign the values in this
> array
> to a new one without the first row or the first two rows?
>
> thanks


a without b's first row
a=b(2:N)
a without b's first 2 rows
a=b(3:N)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com