Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: want to collect specific row values from an array
Posted:
Dec 4, 2012 6:37 AM


On 12/4/2012 5:16 AM, Moon Datta wrote: > I have two arrays in which one(A) is of 86400x1 > > and another(B) is of 3600x1 > > B array is created by the value of every 60th row of A. > > e.g. > B(1,:)=A(60,:) >
But you have one column only. Then why not just write
B(1)=A(60)
?
How about:
 %data M = 86400; N=3600; A = rand(M,1); B = rand(N,1);
%logic idx = 0:60:M; idx(1) = 1; B = A(idx); 
Nasser



