MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

# Thread Subject: Very Simple Question

 Subject: Very Simple Question From: Casey Date: 8 Sep, 2012 13:46:08 Message: 1 of 3 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...
 Subject: Very Simple Question From: dpb Date: 8 Sep, 2012 14:16:17 Message: 2 of 3 On 9/8/2012 8:46 AM, Casey wrote: > 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... OK, at least you're up front on the homework... :) cs-sm is generally "show your work to date" first and then hints are forthcoming... I'd give the first hint as doc colon Read the "Getting Started" documentation section starting from the beginning working your way through the 'Quick Start' section and then particularly in "Language" the "Indexing" subject entry will be enlightening... --