Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
shannon stoffel
shannon stoffel le 31 Août 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
How would I link the file I open to the other buttons?

Réponses (1)

Walter Roberson
Walter Roberson le 31 Août 2015
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 commentaires
shannon stoffel
shannon stoffel le 1 Sep 2015
[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.

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by