Find Time Series Objects with Specific Names

조회 수: 7(최근 30일)
Etienne Coetzee
Etienne Coetzee 2011년 7월 20일
Hi All
I am trying write a GUI for exploring large data sets of time history data. Each signal has a specific name associated with it. I would like to use time series objects and collections, and then be able to find the specific time series objects that have certain strings in the name. Is there a way of finding time series objects in this way? The tstool would be the obvious choice, but it does not seem to be possible to do this.


Fangjun Jiang
Fangjun Jiang 2011년 7월 20일
What type of time series data do you have? Does each signal have a time series object? If that is the case, you can use VarNames=whos to get the names of the variables. I've dealt with Simulink.Timeseries data (the logsout data from Simulink model simulation). I can use logsout.unpack to unpack every signal. Then every signal is a multi-hierarchy structure. It has a field called "Name", which can be easily obtained.

Etienne Coetzee
Etienne Coetzee 2011년 7월 20일
I have several time series objects, where each one has a specific name or code. I would like to filter the objects to give me only specific signals that have specific code segments. At the moment I can do this by using the regexp command on a string array with all the names in.

Community Treasure Hunt

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

Start Hunting!

Translated by