编写MATLAB function模块程序时使用load函数报错。

编写MATLAB function模块程序时使用load函数报错
使用load下载mat文件,load的用法没问题,直接将load写在workspace可以用,为什么在写MATLAB function模块程序时不能用
请大佬指点

 Akzeptierte Antwort

loraco
loraco am 27 Nov. 2022

0 Stimmen

有可能是工作空间限制了。
尝试了load应该没问题,load完之后的使用可能有问题。
使用evalin函数调用workspace里面的变量,试试。

Weitere Antworten (0)

Kategorien

Mehr zu 文件和文件夹 finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 27 Nov. 2022

Beantwortet:

am 27 Nov. 2022

Community Treasure Hunt

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

Start Hunting!