Running a function with inputs read by another file
8 次查看(过去 30 天)
显示 更早的评论
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!