Why i keep geeting this error ?

I am able to save the driving scenario file in my computer, but when I try to export the Simulink model I am unable to do so. I keep getting this error,
“Unrecognized function or variable 'new_system'”
Also I am unable to generate the MATLAB function in the driving scenario toolbox.

댓글 수: 4

Mudit Chaturvedi
Mudit Chaturvedi 2021년 7월 18일
Hello Darshit!
I understand you are getting an "unrecognized function or variable 'new_system' " error when you are trying to export the simulink model.
Can you tell me which release of MATLAB you are using?
Darshit Shah
Darshit Shah 2021년 7월 18일
I am using R2021a
Since new_system is a built-in function, one of the reasons why it's not recognized might be that, new_system.m file is in a folder which is not on the Matlab search path.
To get the path to new_system.m file, execute the following command:
>> which -all new_system
To check if this path is added to the Matlab search path, execute the following command to get a list of the current search path:
>> path
In the event that the folder containing new_system.m is not on the Matlab search path then you can add it by using the addpath function.
Refer to this link Resolve Error: Undefined Function or Variable, for a list of possible solutions.
Darshit Shah
Darshit Shah 2021년 7월 20일
Thankyou for your help!!
I also had a doubt on how to do platooning in matlab simulink?

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

답변 (0개)

카테고리

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

제품

질문:

2021년 7월 18일

댓글:

2021년 7월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by