MATLAB Answers

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

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!

  0 Comments

Products

No products are associated with this question.

2 Answers

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.

  0 Comments


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


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today