MATLAB: How to work with .fig file after extraction

fig-file

wrote a program to encrypt an image , after that save it . It is being saved in .fig format . so how can I load the file to decrypt it any ideas? i have extracted the xdata and ydata but am new to matlab so need help to understand how to work with those

Best Answer

fig = loadfig('NameOfFig.fig');
image_handle = findobj(fig, 'type', 'image');
image_array = get(image_handle, 'CData');