Real time plotting of radiation pattern using matlab

Status
Not open for further replies.

gayathrim

Junior Member level 3
Joined
May 13, 2019
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
253
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/17217774/making-a-gif-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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…