微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > Real time plotting of radiation pattern using matlab

Real time plotting of radiation pattern using matlab

时间:04-04 整理:3721RD 点击:
hello,
can anyone suggest any method to plot the radiation pattern in reatime using code or toolbox in matlab? i need to plot a live moving graph while reading the angle and gain. thanks in advance

You may use "drawnow" matlab command, here is good example https://stackoverflow.com/questions/...if-from-images

hello, i did try using the drawnow command. but it only plots till the end of the existing value in the text file. the plot doesn't update if i add more data to the text file. is there any way to refresh or update the text file while plotting? attaching code along.

load('hplane.txt');
angle=hplane(:,1);
db=hplane(:,2);

anglerad=deg2rad(angle);

n = numel(angle);
figure;
for i = 1:n

polarplot(anglerad(1:i),db(1:i),'-r','linewidth',1.4,'color','blue');
rlim([min(db),max(db)]);
thetalim([0 360]);
thetaticks(0:10:360)

drawnow;


end

Reload ‘hplane.txt’, every time after adding data.

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top