Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do I get an m-file to read from a GUI interface specified directory?

조회 수: 1 (최근 30일)
Sue
Sue 2011년 7월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
I am trying to get an m-file to work from within a GUI interface. My m-file reads jpgs from within a specified path directory and then averages them together. How do i change the m-file so that it reads the jpgs from a path directory specified by the GUI user?
I am very new to this GUI and MATLAB programming so please try and make the answer as simple as possible.
Many thanks
  댓글 수: 1
Paulo Silva
Paulo Silva 2011년 7월 4일
repeated question by same user http://www.mathworks.com/matlabcentral/answers/10847-how-do-i-write-into-my-m-file-to-use-the-gui-user-selected-pathdirectory

답변 (1개)

Jan
Jan 2011년 7월 4일
This depends on where the specified path is stored. If you write it to the GUIDATA and call the M-file from a callback of one of the GUI's elements, you could get it using GUIDATA again and use it as input argument of the N-file. But there are dozens of other possibilities. So please post more details.
  댓글 수: 1
Sue
Sue 2011년 7월 4일
Can I send you the m-file and fig so I can explain it a bit better?

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by