Export features extraction as a .mat file

After I extract the features of an image, I want it to save as .mat file but I don't know how? Please help me!

 採用された回答

Walter Roberson
Walter Roberson 2016 年 9 月 27 日

0 投票

save('NameOfMatFile.mat', 'MEAN', 'SD', 'ENTROPY', 'RMS' and so on)
This assumes that you have stored the value you labelled MEAN in a variable named MEAN .
If you have a bunch of uicontrol edit boxes then it is possible to extract their String properties and save those, but since you are extracting features from an image you have already calculated those into variables and you might as well save the numeric variables directly.

6 件のコメント

Hazel Sialongo
Hazel Sialongo 2016 年 9 月 27 日
This helps me but I want it to save as one file not as individual. Like, the mean,sd,entropy ... will save in one mat file. ( Like the image below but in .mat file )
Image Analyst
Image Analyst 2016 年 9 月 27 日
The way Walter showed you will save it as one mat file. All the variables you list will be in that same mat file. Try it and see. Use load() to read them back out of the mat file.
Hazel Sialongo
Hazel Sialongo 2016 年 9 月 27 日
I load it and this is the result.
Hazel Sialongo
Hazel Sialongo 2016 年 9 月 27 日
But I want to happen is like this.
hema purad
hema purad 2017 年 1 月 12 日
hi thank you for your answer
Walter Roberson
Walter Roberson 2017 年 1 月 12 日
Loop over the blobs or images, for each construct a row vector of the properties you want in the order you want. Use each of those row vectors as a row in a matrix. At the end, save the matrix.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by