필터 지우기
필터 지우기

Radar and Visualization of objects

조회 수: 1 (최근 30일)
Pascal Viertel
Pascal Viertel 2018년 7월 11일
댓글: Pascal Viertel 2018년 7월 19일
Whats the best way to visualize tracked objects via radar? Does a toolbox exist for that purpose?
  댓글 수: 3
Pascal Viertel
Pascal Viertel 2018년 7월 19일
편집: Pascal Viertel 2018년 7월 19일
I would like to start with a single point in a cartesian coordinate which refreshes every 0.01s.
I want to hold my plot, plot the new point and delete my old. So i can visualize a tracked object and see it moving in a coordinate system.
I started with this code:
% Code
function realtime_plot(x_pos, y_pos)
hLine = plot(nan,nan,'r*');
axis([0 10 0 10])
grid on;
while(1)
set(hLine, 'YData', x_pos, 'XData', y_pos);
drawnow
end
It works in matlab but not when i try to use it as a function block in simulink. If i do that, nothing happens.
Pascal Viertel
Pascal Viertel 2018년 7월 19일
Ok i solved the problem. The mistake was the while loop. Dont need it for simulink.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Visualization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by