can't print pictures

조회 수: 1 (최근 30일)
yiping LIU
yiping LIU 2020년 2월 15일
댓글: yiping LIU 2020년 2월 16일
Use the function "print" to print a picture, sometimes it can work it out, but most time it failed. The reason is wrong with matlab.graphics.internal.name. I don't know what it means,can anyone help me?
  댓글 수: 6
Stephen23
Stephen23 2020년 2월 15일
@yiping LIU: please use comments for commenting, not answers.
Subhadeep Koley
Subhadeep Koley 2020년 2월 15일

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

채택된 답변

Subhadeep Koley
Subhadeep Koley 2020년 2월 15일
편집: Subhadeep Koley 2020년 2월 15일
It seems the paths below
"C:\Users\panchaopang\Documents\MATLAB\"
"C:\Users\panchaopang\Documents\mtex-5.2.5\mtex-5.2.5\geometry\@S1Grid\"
"C:\Users\panchaopang\Documents\mtex-5.2.5\mtex-5.2.5\geometry\@S2Grid\"
"C:\Users\panchaopang\Documents\mtex-5.2.5\mtex-5.2.5\geometry\@S03Grid\" in your computer has some custom delete.m which is interfering with the MATLAB built-in delete function.
There are two options
1. If possible rename those delete.m functions in those three paths.
2. Removing those paths from MATLAB's search path using the below command
rmpath('C:\Users\panchaopang\Documents\MATLAB\');
rmpath('C:\Users\panchaopang\Documents\mtex-5.2.5\mtex-5.2.5\geometry\@S1Grid\');
rmpath('C:\Users\panchaopang\Documents\mtex-5.2.5\mtex-5.2.5\geometry\@S2Grid\');
rmpath('C:\Users\panchaopang\Documents\mtex-5.2.5\mtex-5.2.5\geometry\@S03Grid\');
Hope this helps!
  댓글 수: 1
yiping LIU
yiping LIU 2020년 2월 16일
Sorry for replying late. I tried your first option and rename all the delete.m and the outcome is inspiring. Now I can use 'print' function normally. I'm really grateful for your help!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by