Hi, Hamid.
Have you followed the guide at the top of the make_FAST_SFunc.m file? The make_FAST_SFunc.m file tells you how to modify the environment variables and compile settings to use ifort inside the Matlab environment.
Typically, when you install the Intel Fortran Compiler, it does not actually change the PATH, INCLUDE, and LIBRARY environment variables to point to all the files needed for compiling and linking. This is why the compiler has some shortcuts under “Intel Compiler/command prompt” on the Start Menu (see figure 2 in wind.nrel.gov/public/bjonkman/De … ctions.pdf). The Intel Command Prompt shortcuts run some batch scripts to modify the environment variables for that command prompt session. If you try to run ifort in a “normal” command prompt window (i.e., not using the Intel shortcut), it won’t recognized ifort.
Note that make_FAST_SFunc.m is used only to compile new FAST_SFunc.mexw32 or FAST_SFunc.mexw64 files. You shouldn’t need to run it if you haven’t changed any source code. Also, you may find this thread useful if you are a beginner to FAST for Simulink: Beginner Guide for MATLAB Simulink and FAST