How do I run MATWEB from the MATLAB command line?
2 次查看(过去 30 天)
显示 更早的评论
How do I run MATWEB from the MATLAB command line and pass parameters to it which it can then pass on to the matlabserver?
How do I specify my own command line parameters without resorting to hardcoding them in the conf file?
For example, the matweb.conf file looks as follows:
[webmagic]
mlserver=localhost
mldir=c:/progra~1/services/apache~1/apache/www/matlab/icons
msize=3
When I run the following code from the command line I get the correct output.
c:>matweb mlmfile=webmagic
However when I remove the msize=3 line from the conf file and do the following, MATWEB complains that msize is not defined.
c:>matweb mlmfile=webmagic msize=3
采纳的回答
MathWorks Support Team
2009-6-27
It is not possible to specify parameters for the MATWEB.CONF file from the MATLAB command line.
One way to call MATWEB from the MATLAB command line is by calling MATWEB with a MATLAB structure as an argument. For the webmagic file, we need to pass MATWEB a structure with both the mlmfile and msize fields.
For example:
>> instruct.mlmfile='webmagic'
instruct =
mlmfile: 'webmagic'
>> instruct.msize='3'
instruct =
mlmfile: 'webmagic'
msize: '3'
>> matweb(instruct)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Create Model Web Views 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!