jamesclerk
Newbie level 1
Hi,
we can creat a brick in CST by matlab with bellow MATLAB codes. But I want to load from CST material Library other materials for instance "FR-4 (lossy)" or "Copper (annealed)" . Do you know how can use "FR-4 (lossy)" or "Copper (annealed)" ?
If I write invoke(brick, 'Material', 'FR-4 (lossy)') matlab error is;
Matlab Code for material -->PEC
we can creat a brick in CST by matlab with bellow MATLAB codes. But I want to load from CST material Library other materials for instance "FR-4 (lossy)" or "Copper (annealed)" . Do you know how can use "FR-4 (lossy)" or "Copper (annealed)" ?
If I write invoke(brick, 'Material', 'FR-4 (lossy)') matlab error is;
Error using Interface.CSTStudio_application.NewMWS.Brick/invoke
Invoke Error, Dispatch Exception:
Source: CST MICROWAVE STUDIO 2016
Description: The specified material does not exist: FR-4 (lossy)
Matlab Code for material -->PEC
Code:
brick = invoke(mws, 'Brick'); % create a brick in MWS
invoke(brick, 'Reset');
invoke(brick, 'Name', 'Brick1');
invoke(brick, 'Component', 'component1');
invoke(brick, 'Xrange', '-50', '50');
invoke(brick, 'Yrange', '-40', '40');
invoke(brick, 'Zrange', '0', '1');
invoke(brick, 'Material', 'PEC');
invoke(brick, 'Create');
% ... possibly create other bricks here
%Note: if several bricks need to be created, the pair of commands ,
% brick = invoke(mws'Brick') and release(brick) only need to be issued once.
release(brick);