I have a simulink file with a simout named as out.Y . When I try to run an fmincon function using matlab2019b terminal, it throws error saying "Unable to resolve the name out.Y". However the issue doesnot occur with 2019a or 2018

2 Kommentare

Daniel Ferreira
Daniel Ferreira am 14 Nov. 2020
how did you solve this ?
I have the same problem but cannot find any solution

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Sarasij Banerjee
Sarasij Banerjee am 23 Nov. 2020

11 Stimmen

Under the 'Configuration and Simulation', go to 'model settings'. On entering, go to 'Data Import/Export'. Uncheck the Single simulation output box, and you're done!!

8 Kommentare

Shreyans Raj
Shreyans Raj am 1 Sep. 2021
Thanks dude
Bugatti Great
Bugatti Great am 4 Okt. 2021
Thank you so much dude
I have been looking for this answer from last 8 hours
Kushal Saitia
Kushal Saitia am 23 Nov. 2021
an absolute life saver!
thanks <3
Krishn Kumar Gupta
Krishn Kumar Gupta am 25 Jul. 2022
it worked!! thanks
jingxian Liao
jingxian Liao am 28 Jul. 2022
worked perfectly! Thank you so much!!!!!
I did it, but it always doesn't worked for me. I use matlab R2021b. Could someone please suggest another solution?
Aayush
Aayush am 30 Sep. 2022
Maybe your code has a "clear" command on top
Omar Rateb Shehata
Omar Rateb Shehata am 19 Jan. 2023
Thank you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by