Howdy, stranger! Ready to join the community? [log in]

To reply on Icrontic, register now.

It only takes 30 seconds.

Have an account? Sign in for less ads.

Forgot?
ldelgad8
Icrontic Convert
ldelgad8
15 Posts

Creating array with while loop results

How do you store the results of a while loop as an array, so I can do a min, max, and median.

thank you,
ld
shwaip
elaborate bot
shwaip
5,728 Posts
you'll want to use a variable to keep track of the index:

Code:
ind=1;
while (whatever)
     %code
     answers(ind) = whatever you want;
     ind = ind + 1;

end
__________________ my photostream for ic photography challenge

Anyone who wants dropbox, please use my referral link
Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid 5 array problem RamRam Storage 4 21 Jan 2008 11:52pm
not sending DogDragon Folding@Home 9 14 Jul 2007 5:08pm
trouble sending results Kristof2 Folding@Home 0 3 Jul 2005 6:27pm
The Raid FAQ's Thread Spinner Storage 18 2 Jun 2004 5:35am
Getting Familiar with loops in C/C++ a2jfreak Web & Digital Media 0 28 Nov 2003 3:17am

Go Back   Icrontic Forums > Tech: Software > General Software > Matlab Help
Jump to
This Thread Search this Thread
Search this Thread:

Advanced Search


Current time: 10:09pm (GMT)
Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Get Vanilla instead. Trust me.