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: sum of result of two rows with third row
Replies: 3   Last Post: Aug 27, 2013 2:38 PM

Advanced Search

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

Posts: 18
Registered: 3/17/11
sum of result of two rows with third row
Posted: Aug 27, 2013 11:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

i am stuck with a problem in for loop.

I have a data as below.

A = [0 1 2 3 4 5 6 7 8 9]';

in vector B, I want to apply a function mod as such mod ((0+1),5) which will be added to third element 2 and then compute the mod of ((previous result+2),5) and so on. my B vector should have these new values.

Any help will be much appreciated.

Thanks,
Shatrughan



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.