+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Junior Member level 1
    Points: 138, Level: 1

    Join Date
    May 2019
    Posts
    16
    Helped
    0 / 0
    Points
    138
    Level
    1

    Real time plotting of radiation pattern using matlab

    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

    •   AltAdvertisement

        
       

  2. #2
    Full Member level 2
    Points: 1,042, Level: 7

    Join Date
    Oct 2017
    Posts
    145
    Helped
    20 / 20
    Points
    1,042
    Level
    7

    Re: Real time plotting of radiation pattern using matlab

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


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Junior Member level 1
    Points: 138, Level: 1

    Join Date
    May 2019
    Posts
    16
    Helped
    0 / 0
    Points
    138
    Level
    1

    Re: Real time plotting of radiation pattern using matlab

    Quote Originally Posted by Georgy.Moshkin View Post
    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



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 5
    Points: 16,333, Level: 30
    pancho_hideboo's Avatar
    Join Date
    Oct 2006
    Location
    Real Homeless
    Posts
    2,497
    Helped
    665 / 665
    Points
    16,333
    Level
    30

    Re: Real time plotting of radiation pattern using matlab

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


    1 members found this post helpful.

--[[ ]]--