Main Content

array

Create array of PCB stack objects

Since R2021a

    Description

    pcbArr = array(pcbObj,arrayType) creates a default arrayType array configuration of the specified pcbObj PCB antenna.

    example

    pcbArr = array(___,Name=Value) sets the properties of the array using one or more Name-Value Arguments arguments.

    example

    Examples

    collapse all

    Create a PCB antenna from a circular microstrip patch antenna using the pcbStack object.

    ant = patchMicrostripCircular(Substrate=dielectric("FR4"));
    pcbAnt = pcbStack(ant);
    show(pcbAnt)

    Figure contains an axes object. The axes object with title pcbStack antenna element, xlabel x (mm), ylabel y (mm) contains 8 objects of type patch, surface. These objects represent PEC, feed, FR4.

    Create a linear array of the antenna using the array function.

    pcbArr = array(pcbAnt,"linear",NumElements=5,ElementSpacing=0.2);
    show(pcbArr)

    Figure contains an axes object. The axes object with title pcbStack antenna element, xlabel x (mm), ylabel y (mm) contains 20 objects of type patch, surface. These objects represent PEC, feed, FR4.

    Create a PCB antenna using pcbStack object.

    pcbAnt = pcbStack
    pcbAnt = 
      pcbStack with properties:
    
                  Name: 'MyPCB'
              Revision: 'v1.0'
            BoardShape: [1x1 antenna.Rectangle]
        BoardThickness: 0.0100
                Layers: {[1x1 antenna.Rectangle]  [1x1 antenna.Rectangle]}
         FeedLocations: [-0.0187 0 1 2]
          FeedDiameter: 1.0000e-03
          ViaLocations: []
           ViaDiameter: []
          FeedViaModel: 'strip'
           FeedVoltage: 1
             FeedPhase: 0
             Conductor: [1x1 metal]
                  Tilt: 0
              TiltAxis: [1 0 0]
                  Load: [1x1 lumpedElement]
    
    
    pcbAnt.Layers{1} = pcbAnt.Layers{1} - antenna.Rectangle(Length=7e-3,Width=7e-3);
    pcbAnt.Layers{1} = pcbAnt.Layers{1} - antenna.Circle(Radius=5e-3,Center=[20e-3,0]);
    d = dielectric("FR4");
    d.Thickness = pcbAnt.BoardThickness;
    pcbAnt.Layers{2} = d;
    pcbAnt.Layers{3} = antenna.Rectangle(Length=0.15,Width=0.075);
    pcbAnt.FeedLocations(end) = 3;
    show(pcbAnt)

    Figure contains an axes object. The axes object with title pcbStack antenna element, xlabel x (mm), ylabel y (mm) contains 8 objects of type patch, surface. These objects represent PEC, feed, FR4.

    Create a 4-by-4 rectangular array of PCB antennas.

    pcbArr = array(pcbAnt,"rectangular",Size=[4 4],ColumnSpacing=0.1,RowSpacing=0.2);
    show(pcbArr)

    Figure contains an axes object. The axes object with title pcbStack antenna element, xlabel x (mm), ylabel y (mm) contains 53 objects of type patch, surface. These objects represent PEC, feed, FR4.

    Create a PCB antenna from a triangular patch microstrip antenna using the pcbStack object.

    ant = patchMicrostripTriangular(Substrate=dielectric("FR4"));
    pcbAnt = pcbStack(ant);

    Create a circular array of the PCB antenna.

    pcbArr = array(pcbAnt,"circular",Radius=0.03);
    show(pcbArr)

    Figure contains an axes object. The axes object with title pcbStack antenna element, xlabel x (mm), ylabel y (mm) contains 23 objects of type patch, surface. These objects represent PEC, feed, FR4.

    Input Arguments

    collapse all

    PCB antenna, specified as a pcbStack object.

    Example: pcbStack

    Type of array configuration, specified as a string. The array configuration can be:

    • linear - Creates a default 2 element linear array with a spacing of 2 meters between the elements.

    • rectangular - Creates a default 2-by-2 rectangular array with row and column spacing of 2 meters each.

    • circular - Creates a default six element circular array with a radius of 1 meter and an offset angle of 0 degrees.

    Example: "linear"

    Data Types: string

    Name-Value Arguments

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: NumElements=4

    Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

    Example: 'NumElements',4

    Linear Array

    collapse all

    Number of the antenna elements in the array, specified as a positive integer.

    Example: 4

    Spacing between the antenna elements, specified as a positive scalar or positive vector in meters. By default, the elements are spaced 2 meters apart. Use scalar for uniform and vector for non-uniform spacing between the antenna elements.

    Example: 3

    Example: [3 2]

    Data Types: double

    Rectangular Array

    collapse all

    Number of the antenna elements in the row and column of the array, specified as a two-element vector.

    Example: [4 4]

    Row spacing between the two antenna elements, specified as a scalar or vector in meters. By default, the antenna elements are spaced 2 meters apart. Use scalar for uniform and vector for non uniform spacing between the antenna elements.

    Example: 0.1

    Example: [2 1]

    Data Types: double

    Column spacing between the two antenna elements, specified as a positive scalar or positive vector in meters. By default, the antenna elements are spaced 2 meters apart. Use scalar for uniform and vector for non uniform spacing between the antenna elements.

    Example: 0.1

    Example: [2 1]

    Data Types: double

    Circular Array

    collapse all

    Number of elements in the array, specified as a positive integer. The elements in the array are arranged along the X-axis.

    Example: 4

    Data Types: double

    Radius of the array, specified as a positive scalar in meters.

    Example: 0.4

    Data Types: double

    Offset angle for the first element in the array, specified as a real scalar in degrees.

    Example: 8

    Data Types: double

    Output Arguments

    collapse all

    Array of the PCB antenna elements, returned as a pcbStack object.

    Version History

    Introduced in R2021a