How to retrieve the array matrix from .fig file
7 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(2 个)
Walter Roberson
2016-1-15
fh = openfig('map_fbp.fig');
sh = findall(fh, 'type', 'surface');
data_array = get(sh, 'CData');
delete(fh)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!