Continue to Site

Reply to thread

Hello everyone,


I am attempting to plot the E-Plane and H-Plane for a patch antenna in MATLAB using derived equations.


I am having trouble with an error at the very end of my script that says: -  Error: Invalid parameter '0      ...'.


The issue I am having is that I am trying to plot a function with "two variables" (theta and phi) in MATLAB. Since I am also declaring my "theta" and "phi" as "symbolic" variables (syms), I can't use the regular "plot" functions. I've tried using "fplot", but I kept running into the "Invalid parameter '0      ...'." error.


I am assuming an infinite ground plane for this patch antenna.


My MATLAB code is attached. See the .zip file below. This is my attempt so far.

Plotting_E_Plane_H_Plane_Patch_Antenna.zip


Just as some background, this is how I derived my equations for E-Plane and H-Plane. See the screenshots below.  I am utilizing the "stationary phase integration" method to derive and calculate my E-Fields.


[ATTACH=full]192115[/ATTACH]

[ATTACH=full]192118[/ATTACH]

[ATTACH=full]192123[/ATTACH]


I found E(theta), and E(phi) using the matrices above, did the conjugates for both, and then plugged them into my code to find the radiation intensity.

The Radiation Intensity becomes:

[ATTACH=full]192117[/ATTACH]



For the E-Plane, I will plot:

[ATTACH=full]192119[/ATTACH]


For the H-Plane, I will plot:

[ATTACH=full]192120[/ATTACH]


Part and Inventory Search

Back
Top