tried to use export_fig.m after downloading it but matlab does not recognize

I downloaded the export_fig function from the MathWorks site. I unzipped the downloaded file, and then added the resulting foldes to the matlab path. But when I try to use it, I get the message:
>>Unrecognized function or variable 'export_fig'.
what am I still missing?
Thanks!

6 Comments

"then added the resulting foldes to the matlab path"
How did you do this?
What location did you use? (show us a screenshot of the folder).
(show us a screenshot of the folder).
and a screenshot of your Matlab path.
Thanks for answering!
Today it is behaving differently, but still not working. Today, I tried downloading again the export_fig from the Mathworks site, and this time more files downloaded, including the .m files (which seemed to be missing ealier) and specifically the export_fig.m.
I added the folders to the Path: please see the attached jpeg file: Screenshot exp_fig Path.jpg
Now matlab does find the exp_fig function. However, when I try to run the function I still get a question I don't know how to answer. See my attached file: Screenshot exp_fig.jpg:
At the bottom of the screen capture you can see my matlab commands, and at the top, the window that matlab opened which I don't know how to deal with.
Thank again!
Maybe my matlab command is not right? maybe my input to exp_fig?
Notice the error message about ghostscript not being installed.

Sign in to comment.

Answers (0)

Categories

Products

Release

R2021b

Tags

Asked:

on 28 Jul 2022

Commented:

on 2 Aug 2022

Community Treasure Hunt

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

Start Hunting!