how to store udp data in struct matlab

3 visualizaciones (últimos 30 días)
Rashi Mehrotra
Rashi Mehrotra el 16 de Jul. de 2021
Comentada: Rik el 16 de Jul. de 2021
I have radar data received from udp, how can I store in some format to access it
  7 comentarios
Rashi Mehrotra
Rashi Mehrotra el 16 de Jul. de 2021
I am getting some data from udp. how to access that data and store in struct
Rik
Rik el 16 de Jul. de 2021
You're making it difficult to help you. Have a read here and here.
You're getting 'some data'. Well, I suggest you use 'some code' access that data. Without context it is difficult to help you. What data are you getting exactly? What functions are you using to get it? What class and shape is it?

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 16 de Jul. de 2021
S(1) = struct ;
S(1).distance = rand(10,1) ; % your distance array
S(1).direction = rand(10,1) ; % your direction array
If you have multiple region data, you can save them into different structure arrays.

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by