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: Very Simple Question
Replies: 2   Last Post: Sep 8, 2012 10:28 AM

Advanced Search

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

Posts: 4
Registered: 9/8/12
Very Simple Question
Posted: Sep 8, 2012 9:46 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

At least it will be for you all, I'm sure! I'm in an intro to programming class right now, and I'm having trouble with loops.

1) Create a new cell array with 100 cells, and every other cell having your name in it using a for loop. Then use a while loop instead.

So far I've gotten my cell array with 100 cells. But I'm stuck there. I've been Google-ing and trolling Matlab but haven't found anything helpful. I have figured out how to pull out every other number (in the fashion of: columns 1 through 10: 1 3 5 7 etc...) But, I'm pretty sure that's not even close to how I should be beginning this.

Any advice on how to do this is greatly appreciated...



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.