MATLAB-CST Interface

조회 수: 26 (최근 30일)
Mashrur Zawad
Mashrur Zawad 2023년 8월 28일
댓글: Walter Roberson 2023년 8월 28일
function Cstbrick(mws, Name, component, material, Xrange, Yrange, Zrange)
brick = invoke(mws,'Brick');
invoke(brick,'Reset');
invoke(brick,'Name',Name);
invoke(brick,'component',component);
invoke(brick,'Material',material);
invoke(brick,'Xrange',int2str(Xrange(1)),int2str(Xrange(2)));
invoke(brick,'Yrange',int2str(Yrange(1)),int2str(Yrange(2)));
invoke(brick,'Zrange',int2str(Zrange(1)),int2str(Zrange(2)));
invoke(brick,'Create');
release(brick);
end
I am using this Matlab code(function) to create a brick in CST by using MATLAB command.Everything works fine except when I am giving Xrange,Yrange or Zrange value as fraction for example 1.6 CST is taking integer result as 2 and if I give 1.2 then CST is taking result as 1 and giving the output accordingly.That means it is always taking integer value instead of fraction.Can anyone please tell me is there anything wrong with my MATLAB code.Should I use anything other than int2str?It would be a great help
  댓글 수: 1
Walter Roberson
Walter Roberson 2023년 8월 28일
(This appears to have to do with the third-party package CST Studio https://www.3ds.com/products-services/simulia/products/cst-studio-suite/ which is an electromagnetic field simulation software.)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Measurements and Feature Extraction에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by