Esperado45
Newbie
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.
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:
For the E-Plane, I will plot:
For the H-Plane, I will plot:
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.
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:
For the E-Plane, I will plot:
For the H-Plane, I will plot:
Attachments
Last edited: