필터 지우기
필터 지우기

how to store udp data in struct matlab

조회 수: 1 (최근 30일)
Rashi Mehrotra
Rashi Mehrotra 2021년 7월 16일
댓글: Rik 2021년 7월 16일
I have radar data received from udp, how can I store in some format to access it
  댓글 수: 7
Rashi Mehrotra
Rashi Mehrotra 2021년 7월 16일
I am getting some data from udp. how to access that data and store in struct
Rik
Rik 2021년 7월 16일
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?

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

답변 (1개)

KSSV
KSSV 2021년 7월 16일
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.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by