Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
convert .m to .fig

Subject: convert .m to .fig

From: Regina

Date: 18 Jun, 2009 09:42:01

Message: 1 of 4

hi!

can anyone help me with this.
can i convert a .m file to .fig
it was made in matlab guide but i only have the .m file.
i want to have the .fig file!

thanks!

Subject: convert .m to .fig

From: us

Date: 18 Jun, 2009 09:54:02

Message: 2 of 4

"Regina " <velasquezregina@rocketmail.com> wrote in message <h1d259$3uk$1@fred.mathworks.com>...
> hi!
>
> can anyone help me with this.
> can i convert a .m file to .fig
> it was made in matlab guide but i only have the .m file.
> i want to have the .fig file!
>
> thanks!

one of the solutions

% 1) run your m-file
     fout='foo.fig'; % <- your fig-name...
     saveas(gcf,fout);
     delete(gcf);
     open(fout);

us

Subject: convert .m to .fig

From: Regina

Date: 18 Jun, 2009 11:00:06

Message: 3 of 4


>
> one of the solutions
>
> % 1) run your m-file
> fout='foo.fig'; % <- your fig-name...
> saveas(gcf,fout);
> delete(gcf);
> open(fout);
>
> us

hi!

i was able to convert it but when i run the .fig not all functions/ buttons are working.
is there any solutions to this?

thank you very much!

Subject: convert .m to .fig

From: Regina

Date: 18 Jun, 2009 11:04:01

Message: 4 of 4


>
> % 1) run your m-file
> fout='foo.fig'; % <- your fig-name...
> saveas(gcf,fout);
> delete(gcf);
> open(fout);
>
> us

i've seen the problem already. it is like a print screen of the .m file that was run.
it means that not all the buttons are going to work or show .fig.
how can this be fixed?

thanks!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us