Create a better plot

2 次查看(过去 30 天)
Heu guys, I have this plot:
This plot defines a plane with a radar moving in x axis, from position 0 to position 400. And at position 184 to position 276, detects a target and calculates the distance to the target. Is there a better plot or gif, that simulates plane moving from 0 to 400 and achieving that range to targets?
Thanks
  2 个评论
John D'Errico
John D'Errico 2022-7-5
A plot is nothing but a bunch of pixels turned on or off. What those pixels mean to you is all that matters.
So what is wrong with the plot you have? Describe why it is a problem. Does it show what happened? Can you interpret that plot correctly? As far as I can see, the existing plot tells me that something was detected at or around time/position 184, and then like a UFO, disappeared at or around time/position 276. The distance between the two seems to have been increasing, as if one of the objects was accelerating.
If yes, then why do you need to find something better? And then, what exactly would be better about a plot that did work perfectly for you, since the existing graphic seems to be not adequate?
Miguel Albuquerque
Yes you're probably right, by the way the target is not moving, is just the aeroplane that moves, so, the distance increases :D

请先登录,再进行评论。

采纳的回答

Mathieu NOE
Mathieu NOE 2022-7-5
hello
maybe you want to make an animated line
demo :
%% create animatedline object / handle
figure
h1 = animatedline;
h1.Marker = '*';
h1.Color = [1 0.4 0];
h2 = animatedline;
h2.Marker = '+';
h2.Color = [0 1 0];
axis([0 5 -1.2 1.2]);
%% dummy data
x = linspace(0,2*pi,100);
y1 = sin(x);
y2 = cos(x);
for ci=1:length(x)
addpoints(h1,x(ci),y1(ci));
addpoints(h2,x(ci),y2(ci));
pause(0.1);
drawnow
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Animation 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by