Info

此问题已关闭。 请重新打开它进行编辑或回答。

Issue in a Simulink simulation.

1 次查看(过去 30 天)
Mohamed Hafeez
Mohamed Hafeez 2020-11-18
关闭: MATLAB Answer Bot 2021-8-20
Hello guys,
So i have been trying to run a simulation i have been trying and keep getting the same issue no matter the program i run. I have linked images to the model, function code and the error message.Any help is appreciated.

回答(1 个)

Paul
Paul 2020-11-18
Not sure what's going on, but the fact that the port names for the Car Dynamics block are capitalized but are are lower case in the function signature as shown in the editor looks a bit odd. I thought the port names should exacly match the signature. I could be wrong about that and don't know if it provides a clue as to what the problem actually is.
  1 个评论
Mohamed Hafeez
Mohamed Hafeez 2020-11-19
Hello sir, The variable case was not the issue.the screenshot of the code was taken at a later time when I was moving the variables around to check if it was causing the issue. However it still provides the same error. Thank you for your response sir.

Community Treasure Hunt

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

Start Hunting!

Translated by