How do I resolve the horzcat and linearArray Error?

3 次查看(过去 30 天)
The research paper I am doing requires me to provide data for certain design questions.These questions are based upon human body communication.For my group specifically we must investigate the power transfer between the transmitter and receiver of our device mainly observing the coils.The coils we used to model each were planar and helix for receiver and transmitter respectively under lc passive circuitry.The code that mathworks has I tried making variations to.So the code only allowed for the transmitter and receiver antenna geometry to be the same so the error that is arising is due to trying to replace one of the identical coils with a helix.If that is not possible I would like to know if there is a way to use the rf pcb toolbox spiral inductors instead.Example instead of spiralobj how can I use Ind.
  2 个评论
Voss
Voss 2023-12-11
The variable created on line 9 is "spiralobj" (lower-case s), not "Spiralobj" (upper-case S), which is what you are using on line 22. That's the cause of the error.

请先登录,再进行评论。

回答(1 个)

Ayush Aniket
Ayush Aniket 2023-12-18
Hi Deandra,
As per my understanding, the error you are encountering is due to an attempt to concatenate objects of different types ('spiralArchimedean' and 'helix') when creating the 'linearArray' object. In MATLAB, objects must be of the same type to be concatenated in this manner.
The 'linearArray' class expects an array of antenna elements of the same type. The combination of 'spiralArchimedean' object with a 'helix' object is not allowed as they are different types of antenna elements.
Please refer to the following documentation link to read more about the 'Element' name-value argument of the 'linearArray' class:
For your purpose, you can use the 'conformalArray' object. It allows you to create an array with different types of antenna elements and specify their positions in space. You can modify your code as follows:
% Create the conformalArray with the spiral and helix elements
wptsys = conformalArray;
wptsys.Element = {spiralobj, hx};
wptsys.ElementPosition = [0 0 0; 0 Rout*2 0];% Specify the position of each element
Please refer to the following documentation page to read more about the 'conformalArray' class:
Hope it helps.

类别

Help CenterFile Exchange 中查找有关 Spiral Antennas 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by