can I convert data array to data structure with time?

20 次查看(过去 30 天)
Hi everybody, can I convert data array to data structure with time?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2012-10-15
t=0:0.1:10;
y=sin(t)
data=struct('time',t,'signal',y)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by