How to store data in cell array?
9 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
KALYAN ACHARJYA
2022-1-11
编辑:KALYAN ACHARJYA
2022-1-11
Just traspose the cell array, let's data is a cell array then-
new_data=data'
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
