Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
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)

Wayne King
Wayne King on 23 Nov 2012
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.

Azzi Abdelmalek
Azzi Abdelmalek on 23 Nov 2012
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;

Community Treasure Hunt

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

Start Hunting!