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


Casey
Posts:
4
Registered:
9/8/12


Very Simple Question
Posted:
Sep 8, 2012 9:46 AM


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 Googleing 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...



