将Matlab中调用的 .m文件放入指定文件夹下,路径如下图。 后直接在安装完Mathscript模块的labview中选择 Tools -> Mathscript window 在控制区输入自定义函数调用即可以实现。