Parsim and sim functions return "Insufficient number of outputs from right hand side of equal sign to satisfy assignment" error.

6 次查看(过去 30 天)
Just like the above, both the parsim and sim functions return a "Insufficient number of outputs from right hand side of equal sign to satisfy assignment" error. Using the simulation manager, it appears that the simulation is running fine, it's just that the functions don't appear to return anything when using the simuilation via a script. When I enter Simulink and run the model in question and avoid using a script to run it, it runs just fine and outputs data upon completion.
To make matters more complicated, this only happens on 1 or 2 computers that the script is being run on. When running my script on my work computer, it returns the error upon completion. If I run the script on a different computer, it runs perfectly and returns all of the results and logged data.
Any suggestions?

采纳的回答

Amritha
Amritha 2024-3-4
编辑:Amritha 2024-3-4
Hello,
This may be related to a known issue with the Simulink Data Inspector preferences in MATLAB R2023b. A possible workaround for this issue is to delete the file "sdiprefs.json" from the MATLAB folder that contains the preference files and allow the file to be automatically regenerated to correct the issue. The path to the folder can be found by executing the following command in the MATLAB Command Window:
>> prefdir
Hope this helps.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 View and Analyze Simulation Results 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by