Running a function in a loop and changing parameters

3 次查看(过去 30 天)
Hi, i have a function that takes a text document, an excel document and a cell location in another document to add information in a master sheet on a specific line. This function is going to be run hundreds of times and rather than the user change the files to access and the cell in which to add the output to, i'd prefer for it to be automatic.
The files can be named '1.txt','2.txt','3.txt', '1.xlsx' etc. and the first cell of the master document to write into is A3. so when the function 'class' is running from 1 to 100 say, i need it to access the point in the loop and change the file names and the cell appropriately.
Cheers in advance!

回答(1 个)

Image Analyst
Image Analyst 2014-9-23

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by