How to multiply a number of files by a single file ??
2 次查看(过去 30 天)
显示 更早的评论
Dear All,
I am having monthly data files(2002-2012) with three columns lat lon and value. I need to multiply these monthly data files by a scaling factor file which also a three column file (lat lon and value).Data files need to be multiplied by values of the scaling factor file, Please help me
0 个评论
回答(1 个)
Walter Roberson
2016-1-11
5 个评论
Walter Roberson
2016-1-13
Does your situation match the case "If the files that you want to process are sequentially numbered", or does your situation match the case "f you want to process all the files whose name matches a pattern in a directory" ? When you visited that link I posted about How can I process a sequence of files, do the three sample blocks of code there show up empty?
Guillaume
2016-1-13
Maybe, it would be better to turn the question around and ask Chris, which step is causing him problem:
- read the scaling file
- get or create the list of files to process
- iterate over each file and
- read the file
- multiply by the scaling file
- write to a new file
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!