Extract variables from multiple .mat files
显示 更早的评论
I have ~250 *.mat files in a year with ~25 variables in each file. I need to extract 1 variable from all of the files and create a new *.mat file to validate against other data.
What is the best way to solve this?
回答(2 个)
Fangjun Jiang
2011-9-15
0 个投票
My code in this answer could be used for your task too. Take a look to see if you have further questions. Basically, you need to go through a for-loop looping on your ~250 .mat files, taking one variable at a time.
4 个评论
Angela Bowman
2011-9-16
Fangjun Jiang
2011-9-16
You'll have to know how to get the variable assuming you are doing it manually one by one (by selecting a particular row and column) first and then write a program to do it automatically. Provide some representative data so it's easy to test it out.
Angela Bowman
2011-9-16
Fangjun Jiang
2011-9-16
So how do you pick the value then?
Walter Roberson
2011-9-15
0 个投票
类别
在 帮助中心 和 File Exchange 中查找有关 Data Import and Export 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!