MATLAB Answers

can I convert data array to data structure with time?

33 views (last 30 days)
Hi everybody, can I convert data array to data structure with time?

Accepted Answer

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

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!