필터 지우기
필터 지우기

Copy figure problem, error using print.

조회 수: 5 (최근 30일)
Adam Bazyl
Adam Bazyl 2017년 10월 26일
편집: Walter Roberson 2017년 10월 26일
Hello, i have problem when i try to copy figure in Matlab. In Command Window i gets such errors:
Error using print
The 4th right hand argument, FLAG, passed to MEX level2 S-function "print" must be
an integer
Error in matlab.graphics.internal.copyFigureHelper (line 145)
print(argsToPrint{:});
Error in editmenufcn (line 65)
matlab.graphics.internal.copyFigureHelper(hfig)
Error while evaluating Menu Callback
Did anyone have similar and solved this problem?

답변 (1개)

Walter Roberson
Walter Roberson 2017년 10월 26일
편집: Walter Roberson 2017년 10월 26일
I would
dbstop at matlab.graphics.internal.copyFigureHelper 145
and see what argsToPrint{4} is, and then start tracing back to see how it got that way.
Which MATLAB version are you using? In R2017b, that code is at a different line.
Also, check
which -all print
You should see toolbox/matlab/graphics/print.m and a number of Java methods, and one built-in method. I suspect you have your own print.mexw64 or the like.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by