How to store data in cell array?

I have data from serial port, after I done my code it save like this.
and the data in {1,1} is like this.
Instead of the data store like 512x1 double, I want the data store like {1,1} until {512,1}. And I also want the data to store like odd data store in {1,1} and even data store in {1,2} so it have two data only and lastly I want to plot the data.
Hope you guys can help me, this is for my fyp.
Thank you so much.

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2022년 1월 11일
편집: KALYAN ACHARJYA 2022년 1월 11일

0 개 추천

Just traspose the cell array, let's data is a cell array then-
new_data=data'

댓글 수: 1

arief fyra
arief fyra 2022년 1월 11일
It become like this.
It is true I want like this but instead of data store in 512x1 double, I want data store like {1,1} until {512,1} and {513,1} continue until the last data.

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

카테고리

도움말 센터File Exchange에서 Data Type Identification에 대해 자세히 알아보기

질문:

2022년 1월 11일

댓글:

2022년 1월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by