Info

This question is closed. Reopen it to edit or answer.

MatlabFunctionBlock error to transform symbolic expression in Simulink Block

1 view (last 30 days)
Can i set as input of a Matlab Function Block in Simulink a handle defined in the Workspace of Matlab?
Actually i have this problem: - i defined a symbolic matrix V(6,6) depending from x,y symbolic variables and i created 36 handles Vij=matlabFunction(V(i,j)) (ex: V11=matlabFunction(V(1,1)) - i defined a new function [V]=function_to_test(x,y,V11,V12,.....V66) where using "feval" function i evaluated numerically V11,V12, ... V66.. - i have NO PROBLEM in matlab but i don't manage to export this "way to do" in simulink.. - i must import these handles to simulink to calculate matrix V in a simulink model and i create a MatlabFunctionBlock but i have errors like this
"matlabFunctionBlock(fff/myblock,V(1,1))
Warning: Input port 1 of 'fff/MATLAB Function' is not connected.
Warning: Output port 1 of 'fff/MATLAB Function' is not connected.
Warning: The model 'fff' does not have continuous states, hence Simulink is using the solver 'VariableStepDiscrete' instead of solver 'ode45'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or by setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog
Warning: Using a default value of 0.2 for maximum step size. The simulation step size will be equal to or less than this value. You can disable this diagnostic by setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics page of the configuration parameters dialog
Undefined function or variable 'myblock'."
Thank you.. Alberto

Answers (0)

Community Treasure Hunt

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

Start Hunting!