Error Unrecognized property 'L' for class 'patchMicrostrip'.
显示 更早的评论
When i run my code Matlab give me this Error, i dont know why
freq = 10e9;
lamda = physconst('LightSpeed')/freq;
ant_len = 0.5*lamda;
ant_width = 0.1*lamda;
ant_height = 0.01*lamda;
ant_imp = 50;
ant = design(patchMicrostrip, freq);
ant.L = ant_len;
ant.W = ant_width;
ant.H = ant_height;
ant.Z = ant_imp;
theta = linspace(-pi/2,pi/2,181);
phi = 0;
[PAT,theta] = pattern(ant,freq,theta,phi);
figure;
polarplot(theta,abs(PAT),'LineWidth',2);
title('Diagrama de Radiación de la Antena de Microbandas');
回答(1 个)
There is still an error in the below because I could not figure out what property Z might be intended to represent.
freq = 10e9;
lamda = physconst('LightSpeed')/freq;
ant_len = 0.5*lamda;
ant_width = 0.1*lamda;
ant_height = 0.01*lamda;
ant_imp = 50;
ant = design(patchMicrostrip, freq);
ant.Length = ant_len;
ant.Width = ant_width;
ant.Height = ant_height;
ant
ant.Z = ant_imp;
theta = linspace(-pi/2,pi/2,181);
phi = 0;
[PAT,theta] = pattern(ant,freq,theta,phi);
figure;
polarplot(theta,abs(PAT),'LineWidth',2);
title('Diagrama de Radiación de la Antena de Microbandas');
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!