Why Simulink matrix size and value is different from MATLAB Function block?

2 views (last 30 days)
Why Simulink matrix size and value is different from MATLAB Function block?
I use the view report in Matlab Function to check the matrix. But its size and value are all different. It take another matrix's size and value. Who to fix this problem?
I want to solve ode problem. As you can see, in report the 'u' and 'W' will input into the function. But if I change to the function 'model_2'. The 'W' will disappear and the error is undefined it. Who to fix this problem?

Answers (0)

Community Treasure Hunt

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

Start Hunting!