- 积分
- 645
- 回帖
- 0
- 西莫币
-
- 贡献
-
- 威望
-
- 存款
-
- 阅读权限
- 25
- 最后登录
- 1970-1-1
该用户从未签到
|
参照网上的例子,做matlab和maxwell联合仿真,matlab的程序出现了错误,不知道什么原因
程序如下:
iMaxwell=actxserver('AnsoftMaxwell.MaxwellScriptInterface');
Desktop=iMaxwell.GetAppDesktop();
Desktop.RestoreWindow
Project=Desktop.SetActiveProject('test')
Design=Project.SetActiveDesign('design1')
Editor=Design.SetActiveEditor('3D Modeler')
DefinitionManager=Project.GetDefinitionManager()
invoke(Editor,'CreateRegularPolyhedron',...
{'NAME:PolyhedronParameters', 'CoordinateSystemID:=',-1,...
'XCenter:=','0mm','YCenter:=','0mm','ZCenter:=','0mm',...
'XStart:=','0.2mm','YStart:=','0mm','ZStart:=','0mm',...
'Height:=','0.6mm','NumSides:=','36','WhichAxis:=','Z'},...
{'NAME:Attributes','Name:=','RegularPolyhedron1','Flags:=','','Color:=','(132 132 193)', ...
'Transparency:=',0,'PartCoordinateSystem:=','Global','MaterialName:=','vacuum','SolveInside:=',true})
delete(iMaxwell); |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|