|
On 9/8/2012 9:16 AM, dpb wrote:
> On 9/8/2012 8:46 AM, Casey wrote:
...
>> 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.
>>
...
Then, to show off and use Matlab as intended, do it w/o a loop at all! :)
I'd add re: a general approach--give up the googling and all for a
solution to your problem but instead begin as suggested by reading the
online documentation and whatever other material the class syllabus has
recommended and work on picking up the basic underlying concepts so you
can apply them to the problem at hand.
Even if you do happen to stumble onto the particular question answer
that way it doesn't do much for actually developing the skill set in
question...
There's another newsgroup w/ a new participant who's trying to move some
C/C++ code to Fortran who's a apparently at lest familiar w/ C but who
keeps asking the most basic questions of Fortran after explaining he's
spent hours searching the internet...problem is, he's been told
repeatedly to get a language reference manual and even better a text and
learn something about the language itself. The lesson unfortunately
doesn't seem to be taking and he's still floundering around after a
couple of weeks trying to write Fortran in a C idiom and unable to
answer the most trivial of syntax questions because he won't use the
tools available directly addressing the core of the problem but looks to
find a specific question answered for him. One of the problems in that
approach is that not knowing the idioms his queries are malformed or use
the wrong terms--
OK, lecture over... :)
--
--
|