阅读背景:

Matlab尝试执行脚本作为一个函数。

来源:互联网 

I have a matlab script, lets call it "master.m", that loads a file called "config.m". config.m contains all the variables used in master.m so that they can be changed easily without editing any of the code. Problem is, I am trying to get the main function in master.m to load config.m based on the user input. So basically I want the user to be able to specify the name of the file to load. For instance if config.m was called testing.m then the user could type at the matlab prompt:I have a matlab script, lets call it "master.m"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: