Extract variables from multiple .mat files
조회 수: 6 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (2개)
Fangjun Jiang
2011년 9월 15일
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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!