Effacer les filtres
Effacer les filtres

I need to save previous adjacent position of object movement

1 vue (au cours des 30 derniers jours)
DAT VUONG
DAT VUONG le 5 Août 2021
Commenté : Chunru le 8 Août 2021
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

Réponses (1)

Chunru
Chunru le 5 Août 2021
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 commentaires
DAT VUONG
DAT VUONG le 8 Août 2021
Thanks for your comment, however, i want to save just only the previously adjacent value of Rx.
Chunru
Chunru le 8 Août 2021
You only have a previous and current value.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Object Properties dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by