Real time plotting of radiation pattern using matlab
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.