필터 지우기
필터 지우기

How to open any file in GUI?

조회 수: 2 (최근 30일)
Raxeee
Raxeee 2013년 1월 29일
If i want to make some GUI and there is a push button. And i want that button to open a specific file saved on my hard disk.
And is it possible to merge any file in GUI, i.e. i want the specific area of GUI to open my c++ program code with a push button.
  댓글 수: 7
Image Analyst
Image Analyst 2013년 2월 3일
What was wrong with my answer? It will display your c++ code. You could then use xlsread() to read in the workbook and then also send that to a table or text label in your GUI with set().
Jan
Jan 2013년 2월 3일
@Raxeee: If you want us to spend more time for finding a solution, you could spend more time to explain, what you are exactly looking for. There is no chance to guess how you want to display "one Excel file with three sheets" and why you want to do this in Matlab, wlthough it is trivial in Excel.

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

답변 (1개)

Image Analyst
Image Analyst 2013년 1월 29일
How about using fopen(), fgetl() or fgets(), and fclose()? Then use
set(handleToTextBox, 'String', theText);
to send the text you read in to the GUI.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by