Try-catch syntax error

I tried running the install_connector script and got this error, but I am running R2007a so I'm not sure why it's giving me this error
??? Warning: File: install_connector.m Line: 15 Column: 7 This try-catch syntax will continue to work in R2007a, but may be illegal or may mean something different in future releases of MATLAB. See Release Notes for MATLAB Version 7.4, "Warning Generated by try-catch" for details.

답변 (2개)

Wayne King
Wayne King 2011년 10월 6일

0 개 추천

Open the install_connector.m file in the editor and insert a comma after catch

댓글 수: 5

Wayne King
Wayne King 2011년 10월 6일
Type
>>edit install_connector.m
go down to line 15 and look for
try on a single line, you can add a comma after catch, or
the recommend thing to do is to make it a block
try
try_statements
catch
catch_statements
end
Emily
Emily 2011년 10월 6일
I added a comma after catch (line 15 and 103) and now it's saying ??? Undefined function or variable 'e'.
Error in ==> install_connector at 15
catch, e %#ok<NASGU>
Kaustubha Govind
Kaustubha Govind 2011년 10월 6일
I think Wayne meant to make that "catch e,". The comma comes at the end of the statement (after e).
Wayne King
Wayne King 2011년 10월 6일
copy and past the line with the try-catch statement here so we can see. As it is now
Wayne King
Wayne King 2011년 10월 6일
Yes, I meant after the catch statement. sorry.

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

Michael Katz
Michael Katz 2011년 10월 7일

0 개 추천

The MATLAB Connector is not supported on versions earlier than R2009b. We haven't tested it on 7a, but I am pretty sure it's not going to work.

카테고리

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

질문:

2011년 10월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by