how to store udp data in struct matlab
Mostra commenti meno recenti
I have radar data received from udp, how can I store in some format to access it
7 Commenti
Rik
il 16 Lug 2021
If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks).
Rashi Mehrotra
il 16 Lug 2021
KSSV
il 16 Lug 2021
There are mutiple ways to achieve this. How one can elaborate without knowing how the data is and what format you are targetting?
Rashi Mehrotra
il 16 Lug 2021
Rik
il 16 Lug 2021
Is your question how to access the data in a field of a struct? How to work with structs is part of the Matlab basics.
What exactly is your question?
Rashi Mehrotra
il 16 Lug 2021
Rik
il 16 Lug 2021
Risposte (1)
KSSV
il 16 Lug 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.
Categorie
Scopri di più su Get Started with MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!