Why i keep geeting this error ?

4 ビュー (過去 30 日間)
Darshit Shah
Darshit Shah 2021 年 7 月 18 日
コメント済み: Darshit Shah 2021 年 7 月 20 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by