Loading files in GUI

조회 수: 2 (최근 30일)
Marek Rousek
Marek Rousek 2016년 1월 5일
댓글: Walter Roberson 2016년 1월 5일
Hello,
I need advice. Creating a GUI for my program, where over pushbutton seeking loaded files. One kind of file is always appoints matice000.txt, the way it is, for example .:
D: \ Dropbox \ School \ 7.SEMESTR \ Project II \ Videos \ 640 \ marie \ marie-640-1a \ matice000.txt
But I need to string that describes the path of the matrix was only:
D: \ Dropbox \ School \ 7.SEMESTR \ Project II \ Videos \ 640 \ marie \ marie-640-1a
ie without \ matice000.txt
How do I set it to a string loaded when selecting a file is always erased the last signs?
Thanks for the reply.

답변 (1개)

Ingrid
Ingrid 2016년 1월 5일
your question is not clear to me but have you looked at the function fileparts?
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 1월 5일
I agree, fileparts() should be able to break it apart.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by