I don't understand why simulink can't find my model to generate estimation code

1 回表示 (過去 30 日間)
KODJOVI SENAM BORIS AHIANDIPE
KODJOVI SENAM BORIS AHIANDIPE 2023 年 9 月 18 日
回答済み: Harsh 2024 年 11 月 29 日
Hello, I was trying to generate a matlabo code for estimation from a model I built in matlab parameters estimator app.
My model name is battery_model_for_estimation and it's the one I'm using currently. But when I click on the option Generate Matlab function under the estimate option. I'm having the following error: Unable to find file 'battery_model_for_estimation'.
How to fix this ?
I'm on matlab R2033a

回答 (1 件)

Harsh
Harsh 2024 年 11 月 29 日
Hi Kodjovi,
MATLAB is unable to find the model ‘battery_model_for_estimation’ because it must not be in your current working directory. To resolve the error please change the current working directory to the directory which contains the model. Alternatively you can add the directory which contains the folder to MATLAB search path using “addpath” function. Refer to the following documentation to understand more about “addpath” function - https://www.mathworks.com/help/matlab/ref/addpath.html

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by