I have the following problems to interface Matlab code in LabVIEW MATLAB script.
1) I try to run the ".m" Math script file in MATLAB script.
It includes the sim function to run the ".slx" Simulink file in the Math script.
![CMun_0-1610999928233.png CMun_0-1610999928233.png](https://forums.ni.com/t5/image/serverpage/image-id/278834iF097FD074144A712/image-size/medium?v=v2&px=400)
![CMun_1-1611000362148.png CMun_1-1611000362148.png](https://forums.ni.com/t5/image/serverpage/image-id/278836i0AD0F896635B382C/image-size/medium?v=v2&px=400)
2) I try to use the sim function in MATLAB script.
![CMun_2-1611000412948.png CMun_2-1611000412948.png](https://forums.ni.com/t5/image/serverpage/image-id/278837iC64671AED1889117/image-size/medium?v=v2&px=400)
There is the same file location. Also, I already add the file path as well.
how can I solve it?
It is the video that I referenced.
https://www.youtube.com/watch?v=sF_sjFqNFUk