The following syntax is used to directly open a new CST MWS window within Maltab environment:
cst = actxserver('CSTStudio.application');
mws = invoke(cst, 'NewMWS');
Translate CST-specific VBA commands to Matlab commands, refer to below example for creating a brick
VBA:
With Brick
.Reset
.Name ("brick1")
.Component ("component1")
.Material ("PEC")
.Xrange (0, 2)
.Yrange (0, 3)
.Zrange (0, "a+3")
.Create
End With
Translate to Matlab commands
brick=invoke(mws,'Brick');
invoke(brick, 'Reset');
invoke(brick, 'Name', 'brick1');
invoke(brick, 'Component','component1');
invoke(brick, 'Material', 'PEC');
invoke(brick, 'Xrange', '0', '2');
invoke(brick, 'Yrange', '0', '3');
invoke(brick, 'Zrange', '0', 'a+3');
invoke(brick, 'Create');
release(brick);
Hallo.. Trinhvanso.
Hope you will be fine..
Actually I'm also working on linking CST MWS with Matlab for my Waveguide cavity..
plzz if you know about how to link the CST with Matlab..plzz let me know..I'm doing Master in Electrical engineering from University Rostock Germany.
thanks
Umar
- - - Updated - - -
Hallo.. Trinhvanso.
Hope you will be fine..
Actually I'm also working on linking CST MWS with Matlab for my Waveguide cavity..
plzz if you know about how to link the CST with Matlab..plzz let me know..I'm doing Master in Electrical engineering from University Rostock Germany.
thanks
Umar