Filter löschen
Filter löschen

Saving edit toolbox into mat file

1 Ansicht (letzte 30 Tage)
Hazel Sialongo
Hazel Sialongo am 28 Sep. 2016
Beantwortet: Geoff Hayes am 29 Sep. 2016
After extracting the features of an image. The result will be appear in the edit toolbox.I want to happen now is, I want to save it as mat file but in one column only. Please help me!
  2 Kommentare
Geoff Hayes
Geoff Hayes am 28 Sep. 2016
Hazel - do you mean to save all ten values from the edit textbox as a column to some mat file? When would this action occur?
Hazel Sialongo
Hazel Sialongo am 28 Sep. 2016
Yes. The action will occur whenever I click the save data ( but you see, the image haven't push button for saving )

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Geoff Hayes
Geoff Hayes am 29 Sep. 2016
Hazel - since you just want to get the values that have been written to the text controls, just do something like the following in your save button callback
function save_Callback(hObject,event,handles)
dataToSave = [];
dataToSave = [dataToSave str2double(get(handles.text1,'String'))]; % mean
dataToSave = [dataToSave str2double(get(handles.text2,'String'))]; % sd
% etc.
save('myData.mat','dataToSave');
We use save to save the column of statistics to the mat file which we have named myData.mat.

Kategorien

Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by