Store multiple .m file names in guidata
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello. I am working on a conversion tool for matlab. I would like to load multiple files into my gui, load its all variables then process it. So the picture displays the general outline for the gui.
I am actually stucked at 'star-ed' step. I would like to load the all the files set by the range then temporarily store into gui(I am guessing I have to use guidata) but is there any suggestion I could achieve this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166697/image.png)
댓글 수: 0
채택된 답변
Walter Roberson
2017년 8월 14일
편집: Walter Roberson
2017년 8월 14일
Grab natsortfiles() from the File Exchange: otherwise you are going to end up listing D1F10 before D1F2 .
Once you have the names well ordered, the two drop boxes together will give you a range of indices. Sub-select that range of indices from the file name list, creating a cell array of strings. You can store that as a field in the handles structure and then guidata() to update the handles structure.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!