Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Storing the results

Subject: Storing the results

From: Anand Anand

Date: 27 Oct, 2010 10:57:03

Message: 1 of 4

I need to run a file thousand times and store the results in another file.How do I achieve that in matlab?

Subject: Storing the results

From: Steven_Lord

Date: 27 Oct, 2010 13:49:10

Message: 2 of 4



"Anand Anand" <tranand3@gmail.com> wrote in message
news:ia90hv$g51$1@fred.mathworks.com...
> I need to run a file thousand times and store the results in another
> file.How do I achieve that in matlab?

The easy way? Use a FOR loop. If you need to run your file a thousand
times looping over a thousand input files, then see question 4.12 in the
newsgroup FAQ.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Storing the results

From: Anand Anand

Date: 28 Oct, 2010 09:03:06

Message: 3 of 4

"Steven_Lord" <slord@mathworks.com> wrote in message <ia9akm$buf$1@fred.mathworks.com>...
>
>
> "Anand Anand" <tranand3@gmail.com> wrote in message
> news:ia90hv$g51$1@fred.mathworks.com...
> > I need to run a file thousand times and store the results in another
> > file.How do I achieve that in matlab?
>
> The easy way? Use a FOR loop. If you need to run your file a thousand
> times looping over a thousand input files, then see question 4.12 in the
> newsgroup FAQ.
>
> --
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

Steve, I have a file which gives the output Z.I want to conduct the simulations thousand times and store all the 1000 Zs in a file.How do I achieve that?

Subject: Storing the results

From: Steven_Lord

Date: 28 Oct, 2010 13:46:15

Message: 4 of 4



"Anand Anand" <tranand3@gmail.com> wrote in message
news:iabe8a$c2d$1@fred.mathworks.com...
> "Steven_Lord" <slord@mathworks.com> wrote in message
> <ia9akm$buf$1@fred.mathworks.com>...
>>
>>
>> "Anand Anand" <tranand3@gmail.com> wrote in message
>> news:ia90hv$g51$1@fred.mathworks.com...
>> > I need to run a file thousand times and store the results in another
>> > file.How do I achieve that in matlab?
>>
>> The easy way? Use a FOR loop. If you need to run your file a thousand
>> times looping over a thousand input files, then see question 4.12 in the
>> newsgroup FAQ.
>>
>> --
>> Steve Lord
>> slord@mathworks.com
>> comp.soft-sys.matlab (CSSM) FAQ:
>> http://matlabwiki.mathworks.com/MATLAB_FAQ
>> To contact Technical Support use the Contact Us link on
>> http://www.mathworks.com
>
> Steve, I have a file which gives the output Z.I want to conduct the
> simulations thousand times and store all the 1000 Zs in a file.How do I
> achieve that?

Short answer? Use a FOR loop.

Long answer? It depends on what exactly you're doing, what the data type
and format of the output of your file are, and what type of file (MAT-file,
plain text file, XML file, Excel spreadsheet, Word document, CSV file, JPG
image, etc.) you're trying to create. If you post some more information
about what you're trying to do to the newsgroup, perhaps someone can offer
some more specific suggestions.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us