フィルターのクリア

I need to save previous adjacent position of object movement

1 回表示 (過去 30 日間)
DAT VUONG
DAT VUONG 2021 年 8 月 5 日
コメント済み: Chunru 2021 年 8 月 8 日
hello everyone!
I have faced the problem is that i need to save previous adjacent position of object in order to identify the difference of object. Here is my code and i need to save the previous adjacent value of Rx. thanks
%%% Move Rx around the room according to Position vector above %%%%
%%% and measure the received power at Rx %%%%%%%%%%
for xx=1:1:no_of_moves_in_x
for yy=1:1:no_of_moves_in_y
Rx = get_Rx_position(Rx_pos_x(xx), Rx_pos_y(yy));
end
end

回答 (1 件)

Chunru
Chunru 2021 年 8 月 5 日
RxPre = [0 0]; % initial position
for xx=1:1:no_of_moves_in_x
for yy=1:1:no_of_moves_in_y
Rx = get_Rx_position(Rx_pos_x(xx), Rx_pos_y(yy));
% Do comparison of Rx and RxPre here
RxPre = Rx;
end
end
  2 件のコメント
DAT VUONG
DAT VUONG 2021 年 8 月 8 日
Thanks for your comment, however, i want to save just only the previously adjacent value of Rx.
Chunru
Chunru 2021 年 8 月 8 日
You only have a previous and current value.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Object Properties についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by