CreateMatrixFromMod​elData

版本 1.1.0.1 (1.8 KB) 作者: Mike Anthony
Outputs a matrix of doubles containing the data from signals logged in Simulink.
654.0 次下载
更新时间 2016/9/1

查看许可证

CreateMatrixFromModelData
Mike Anthony
Mark McBroom
Copyright 2010 The MathWorks, Inc.
This is a recursive function takes any of the following data objects commonly associated with data logging in Simulink:
Simulink.ModelDataLogs
Simulink.SubsysDataLogs
Simulink.ScopeDataLogs
Simulink.TsArray
Simulink Timeseries

This function outputs an nxm matrix of type double where:
n = length of the timeseries data
m = number of timeseries in the input (if the input is a
Timeseries, m = 1).

output_matrix = CreateMatrixFromModelData(inputTsArray)

This function is particularly useful in conjunction with bus signals, signal logging, and the Limit Check element in SystemTest. When signal logging is enabled for a bus signal in Simulink, the data is saved as a Simulink.TsArray. As of R2009b, the Limit Check Element in SystemTest only supports native Simulink data types. The matrix output of this function is fully compatible with the Limit Check element. As such, this provides a quick way to compare bus signals in the limit check element.

This function works well along with the functions in the acknowledgments section.

引用格式

Mike Anthony (2024). CreateMatrixFromModelData (https://www.mathworks.com/matlabcentral/fileexchange/26555-creatematrixfrommodeldata), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Prepare Model Inputs and Outputs 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.1

Updated license

1.1.0.0

Change of file and function name and corresponding comments.

1.0.0.0