필터 지우기
필터 지우기

Info

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

For my GUI, how can I have one button open the file then the other buttons modify that file?

조회 수: 1 (최근 30일)
How would I link the file I open to the other buttons?

답변 (1개)

Walter Roberson
Walter Roberson 2015년 8월 31일
handles.file_identifier = fopen('TheDestinationFile', 'w');
guidata(handles);
and then in the other routines, for example:
fprintf(handles.file_identifier, '%s\n', 'hello there we have been waiting for you');
  댓글 수: 3
shannon stoffel
shannon stoffel 2015년 9월 1일
[filename1,filepath1]=uigetfile({'*.*','All Files'},... 'Select Data File 1'); cd(filepath1); rawdata1=dlmread(filename1);
M = csvread(filename1,1,1)
I am not really sure to how to put your code into this. Sorry, I have no prior experience in coding.

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by