필터 지우기
필터 지우기

export_fig error message help

조회 수: 22 (최근 30일)
Yellow Canary
Yellow Canary 2015년 1월 19일
답변: Jan 2018년 1월 30일
Hi everyone,
I am new to Matlab and trying to understand export_fig function. When I use it I got this error: Undefined function 'export_fig' for input arguments of type 'char'.
What should I do to fix it?
Thank you
  댓글 수: 3
Doha Zayed
Doha Zayed 2018년 1월 30일
I have the same problem. Could you please explain where i should add the export_fig?
Rik
Rik 2018년 1월 30일
In an .m-file on your Matlab path. For example in your current folder.

댓글을 달려면 로그인하십시오.

답변 (2개)

Steven Lord
Steven Lord 2018년 1월 30일
export_fig is not part of any MathWorks toolbox. It is a submission on the MATLAB Central File Exchange. You can install it using the Add-Ons button on the Home tab of the toolstrip or by downloading it and setting it up manually.

Jan
Jan 2018년 1월 30일
Either copy export_fig to the path, which contains your M-files - this might be the userpath. Or Store it in an own folder, maybe containing other tools downloaded from the FEX also. Then add the folder to your path (this is the list of folders, Matlab searches in for functions:
addpath('C:\TheFolder\WichContains\TheMFile\', '-end')
You can save the path for future Matlab sessions also:
savepath
Adding and saving the path can be done by
pathtool
also, which can be started through the menubar also: "Set Path".

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by