필터 지우기
필터 지우기

Error while evaluating Menu Callback

조회 수: 20 (최근 30일)
Tharindu Miyanawala
Tharindu Miyanawala 2017년 10월 16일
답변: Jan 2017년 10월 16일
Hi, I'm trying to save a matlab figure simply by clicking 'File--Save as'. But, the moment I click 'File' in the image window the following error message appears:
"Warning: File: filemenufcn.m Line: 2 Column: 3 'FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF' exceeds the MATLAB maximum name length of 63 characters and will be truncated to 'FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFF'. Error: File: filemenufcn.m Line: 2 Column: 3 Unexpected MATLAB expression.
Error while evaluating Menu Callback"
I tried "restoredefaultpath" and it didn't work. What am I doing wrong here? Please help. Thanks in advance.
P.S.: Saving using 'saveas' and 'savefig' works. But I need to edit the plot and save it.
  댓글 수: 2
Walter Roberson
Walter Roberson 2017년 10월 16일
Please use
which -all filemenufcn.m
and show us the result.
Tharindu Miyanawala
Tharindu Miyanawala 2017년 10월 16일
Hi, I got the following path using this command:
/usr/local/MATLAB/R2017b/toolbox/matlab/uitools/filemenufcn.m

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

채택된 답변

Jan
Jan 2017년 10월 16일
I guess that you have destroyed the filemenufcn.m file. Open it in the editor to check this.
If this is the problem, avoid to work in Matlab with admin privileges. This causes troubles too often, because overwriting M-files by accident occurs more frequently than I would imagine. Another idea is to avoid opening toolbox functions in the editor, but using type funcname to display it in the command window instead. But working as admin has more problems also, so I'd prefer a standard user account.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by