MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Anastasia Galanopoulou
on 23 Nov 2012

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!

*No products are associated with this question.*

Answer by 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.

Answer by 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;

## 0 Comments