Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: want to collect specific row values from an array
Replies: 2   Last Post: Dec 4, 2012 7:04 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Moon Datta

Posts: 32
Registered: 8/16/12
want to collect specific row values from an array
Posted: Dec 4, 2012 6:16 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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,:)

B(2,:)=A(120,:)

....................

in this way.

I have tried

for i=60:60:length(A)
B(i,:) = A(i,:);
end

Its giving me the B array but with 0 replace between every 60th value.

I need only the values with out any zero between them.

any help please.

Thanks in advance




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.