I am looking to build a LHCP (left hand circular polarised) and RHCP(right hand circular polarised) antenna within matlab. My logic is to create two short dipole element and then place them 90 degree out of phase. Thus, I am looking to rotate one of the array such that it would rotate one of the short dipole element.
I have attached my code with it, please help me out.
function cpAntenna = createCircularPolarizedAntenna(antennaType, freq)
antenna1 = phased.ShortDipoleAntennaElement('AxisDirection','Z','FrequencyRange',[1e9 10e9]);
antenna2 = phased.ShortDipoleAntennaElement('AxisDirection','Z','FrequencyRange',[1e9 10e9]);
antenna2 = phased.RotateArray('Array',antenna2,'Z',90);
elseif antennaType == "LHCP"
error('Invalid antenna type. Choose "RHCP" or "LHCP".');
Also if there is anybody that has any better ideas of building a LHCP and RHCP in matlab, feel free to help out.