Save Features Extracted in one row/column and save it as .mat file

How will I save this in one row or column in a .mat file?

5 Commenti

The link does not open.. Please upload an image file, not the link.
I uploaded the image. Can you see it now?
What is this precisely? Is it a Matlab variable? Have you got all these values in a vector?
I extracted the features in an image and want it to save in a mat file but only in one column or in a row.

Accedi per commentare.

 Risposta accettata

Ok, so define your vectors and save them as follows:
FEATURES={'MEAN','SD','RMS',...};
VALUES=[66.2561,78.0825,11.0548,...];
save('myFeatureFile.mat','FEATURES','VALUES');

4 Commenti

Woah! Thank you! I got what I want to be the output. But can I ask question again? I want to get the value of the handles.edit everytime I extracted the image.
This is my code:
set(handles.edit17,'string',Mean);
set(handles.edit22,'string',Standard_Deviation);
set(handles.edit24,'string',RMS);
set(handles.edit25,'string',Variance);
set(handles.edit26,'string',Smoothness);
set(handles.edit27,'string',Kurtosis);
set(handles.edit28,'string',Skewness);
set(handles.edit30,'string',Contrast);
set(handles.edit31,'string',Correlation);
set(handles.edit33,'string',Homogeneity);
Just use GET instead of SET. For example for one case
str_edit17 = get(handles.edit17,'string');
And str_edit17 contains the string 'Mean', etc...
No I mean on your given code:
FEATURES={'MEAN','SD','RMS',...};
VALUES=[66.2561,78.0825,11.0548,...];
save('myFeatureFile.mat','FEATURES','VALUES');
I want to replace the VALUES=[66.2561,78.0825,11.0548,...]; of the value of handles.edit33. Uhm, Did I explained it clear?
When I run my code, at first there's no value in the edit tool. So, what I want is whenever I extract the features of an image I want to save its result in a mat file.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Printing and Saving in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by