Export features extraction as a .mat file

1 visualizzazione (ultimi 30 giorni)
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!

Risposta accettata

Walter Roberson
Walter Roberson il 27 Set 2016
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 Commenti
hema purad
hema purad il 12 Gen 2017
hi thank you for your answer
Walter Roberson
Walter Roberson il 12 Gen 2017
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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by