How to retrieve the array matrix from .fig file

7 vues (au cours des 30 derniers jours)
yasmin
yasmin le 15 Jan 2016
Commenté : Walter Roberson le 15 Jan 2016
Hi,
I have did some coding in m-file to run the pcolor data plot type. Then, I save it as .fig file. That pcolor data plot consists of 128x128 array matrix. How can I retrieve the array matrix of 128x128 from .fig file that I saved? So that I can save it in workspace as .mat file.

Réponses (2)

Walter Roberson
Walter Roberson le 15 Jan 2016
fh = openfig('map_fbp.fig');
sh = findall(fh, 'type', 'surface');
data_array = get(sh, 'CData');
delete(fh)

yasmin
yasmin le 15 Jan 2016
Tq again, its working!
  1 commentaire
Walter Roberson
Walter Roberson le 15 Jan 2016
Don't forget to mark the answer Accepted

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical 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!

Translated by