MATLAB Answers

0

So i wanted a dynamic way to read 3 files from these folders with extensions .w1 , .w2 and .hdr into variables.

Asked by Shibu Clement on 24 Aug 2019 at 11:17
Latest activity Answered by Abhisek Pradhan on 27 Aug 2019 at 8:37

  0 Comments

Sign in to comment.

1 Answer

Answer by Abhisek Pradhan on 27 Aug 2019 at 8:37

One possible way is to store all the targeted folders inside the directory in a variable using dir function. Loop in each folder using the variable to get the desired files.
To get the files of desired extension use fullfile function.
Refer the following link for more help:

  0 Comments

Sign in to comment.