E- Plane Radiation Pattern Plot

How do i plot a radiation effiency plot using linestyle and colour style without using a loop, the below code return error each time i run it.
%% Plot a- MEASURED and SIMULATED E- plane radiation characteristics at 4.02GHz
figure()
P = polarpattern(MEASURED402data(:,2),'TitleBottom','(a) f=4.02 GHz', 'AngleDirection','cw',...
'AngleAtTop',0,'AngleResolution',30, 'MagnitudeLim' ,[-38 2],'ConnectEndpoints',[1],'LineStyleCyclingMethod', 'withcolor',ColorOrder', co);
hold on
P = polarpattern(SIMULATED402data(:,2));
hold off
legend('E-PLANE MEASURED', 'E - PLANE SIMULATED')

1 comentario

Walter Roberson
Walter Roberson el 31 de Ag. de 2023
What error shows up?
We do not have your data so we cannot run your code to see the error message.

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 31 de Ag. de 2023
Once you start into name/value pairs, each name must have exactly one value parameter after it, and you cannot have any non-name/value pairs after the name/value pairs.
However you have
P = polarpattern(MEASURED402data(:,2),'TitleBottom','(a) f=4.02 GHz', 'AngleDirection','cw',...
'AngleAtTop',0,'AngleResolution',30, 'MagnitudeLim' ,[-38 2],'ConnectEndpoints',[1],'LineStyleCyclingMethod', 'withcolor',ColorOrder', co);
which has the option 'LineStyleCyclingMethod' followed by a value, and the nafter that you have the extra value that is the transpose of the non-existent variable named ColorOrder and then you have an extra value co after that.
... You probably wanted 'ColorOrder' instead of ColorOrder'

2 comentarios

Elijah Joseph
Elijah Joseph el 31 de Ag. de 2023
Error in samplecode (line 20)
'AngleAtTop',0,'AngleResolution',30, 'MagnitudeLim' ,[-38 2],'ConnectEndpoints',[1],'LineStyleCyclingMethod',
'withcolor',ColorOrder', co);
%% Plot a- MEASURED and SIMULATED E- plane radiation characteristics at 4.02GHz
figure()
P = polarpattern(MEASURED402data(:,2),'TitleBottom','(a) f=4.02 GHz', 'AngleDirection','cw',...
'AngleAtTop',0,'AngleResolution',30, 'MagnitudeLim' ,[-38 2],'ConnectEndpoints',[1],'LineStyleCyclingMethod', 'withcolor', 'ColorOrder', co);
hold on
P = polarpattern(SIMULATED402data(:,2));
hold off
legend('E-PLANE MEASURED', 'E - PLANE SIMULATED')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 30 de Ag. de 2023

Comentada:

el 31 de Ag. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by