Find Time Series Objects with Specific Names

4 次查看(过去 30 天)
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.
Thanks
Etienne

回答(2 个)

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.

类别

Help CenterFile Exchange 中查找有关 Multirate and Multistage Filters 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by