Extract one-dimensional timeseries from multidimensional timeseries
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hey,
I have a timeseries with Time: [nx1] and Data: [3x1xn] (output from a Simulink model)
How can I get a timeseries based on one dimension of the data? Can I somehow index it?
For example:
ts_3D = timeseries([1; 2; 3].*ones(3,100), linspace(1,100,100))
Now I want to do something like:
ts_1D = ts_3D(1,:)
0 comentarios
Respuestas (1)
Satwik
el 14 de Jun. de 2023
Yes, you can index the data in a timeseries in MATLAB, including selecting a single dimension of the data.
ts_3D = timeseries([1; 2; 3].*ones(3,100), linspace(1,100,100));
ts_1D = timeseries(ts_3D,1:100)
0 comentarios
Ver también
Categorías
Más información sobre Time Series en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!