Hi Alireza,
As I see, you have a workspace variable which you want to use in the MATLAB Function block. The error is because the variable is not visible to the Simulink Model.
I think the following MATLAB Answers queries can be of use to you:
Hope this helps you.