Running a function with inputs read by another file

8 views (last 30 days)
hello all.
I want to use a function but the inputs of it are read from a file. Is it possible to be done without a loop?
e.g. f=myfunction(doy, y, ozone, aod, sza) and doy, y, ozone, aod and sza exist to another file that looks like:
155 2004 250 1.3 60
156 2004 260 1.2 40
.
.
.
So I have to read the inputs and then apply myfunction for each input line of the file.
I suspect that @ could be used (or not?!), but I have no idea how, since I haven't used it before...
Any help, please?
Thank you in advance.
Kind regards, Melina.

Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!