How to save a plot of a pulse to a matrix to load it whenever i want to see it

Hello, i'm building a gui with mri( magnetic resonance imaging) waveforms. I plot 5 separate pulses and i want to save each one in a matrix so than i can load it and edit it. I'm aware of the getframe function but i'm not sure if it is what i need! Does anyone know something that could help me? Thank you!

Answers (2)

One thing you can do is save the figures as .fig files (MATLAB fig files) and then you can use
hgload('filename.fig')
That will display the figure.
You can save your data in a mat file then load a file.
t=0:0.1:10;
y=cos(t);
z=sin(t)
save file t y z
%to call your data
data=load('file');
t=data.t;
y=data.y;
z=data.z;

This question is closed.

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!