Error: Unable to resolve the name out.Y

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 Comments

how did you solve this ?
I have the same problem but cannot find any solution

Sign in to comment.

 Accepted Answer

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 Comments

Thank you so much dude
I have been looking for this answer from last 8 hours
an absolute life saver!
thanks <3
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?
Maybe your code has a "clear" command on top

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!