can I convert data array to data structure with time?

28 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)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!