Hi everyone
When ever I am trying to plot any figure I am getting the following error. Does anyone have any idea how to fix this. My script does not have any error cause I used that many time. Recently I added and deleted few items from path then it started to happen.
Error: File: set.m Line: 1 Column: 1
Unexpected MATLAB operator.
Error in newplot (line 66)
set(fig,'nextplot','add');
Error in contourf (line 70)
cax = newplot(cax);
Error in SST_editor (line 13)
contourf(lon,lat,sst_layer)

댓글 수: 1

Are Mjaavatten
Are Mjaavatten 2017년 11월 19일
Could it be that you have inadvertently modified set.m? Open the file in the editor and check that it is OK.

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

답변 (2개)

Image Analyst
Image Analyst 2017년 11월 19일

0 개 추천

The problem probably originates in a line above it somewhere, like you don't have enough closing parentheses on a line above or something like that.
ABU BAKAR SIDDKE
ABU BAKAR SIDDKE 2017년 11월 20일

0 개 추천

Hello everyone Thanks for the help. I actually found the source of error. There were another file named set.m in a different toolbox that I was using. So when I add that to path this used to happen. Again Thanks for suggestion.

카테고리

도움말 센터File Exchange에서 Desktop에 대해 자세히 알아보기

질문:

2017년 11월 18일

답변:

2017년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by