Saving edit toolbox into mat file
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156697/image.png)
2 commentaires
Geoff Hayes
le 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?
Réponses (1)
Geoff Hayes
le 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');
0 commentaires
Voir également
Catégories
En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!