Save Run-Time Data from Simulation
您可以在仿真期间将信号值保存到MATLAB工作区或MAT文件中,以进行以后的检索和后处理。保存仿真数据也称为记录或导出仿真数据。
Saving simulation data in数据集
格式simplifies postprocessing by providing a common format for the results of a variety of logging techniques. Using数据集
格式stores the data as MATLABtimeseries
对象,您可以使用MATLAB处理。
Signal logging and data stores use
数据集
格式.Output and state logging use
数据集
作为默认格式。The default save format for the To File and To Workspace blocks is
Timeseries
.
金宝app®provides tools to将记录的数据转换为数据集
格式.
To determine which approach to use for logging signal data, seeExport Simulation Data.
块
外港 | 创造output port for subsystem or external output |
To File | 将数据写入文件 |
To Workspace | Write data to workspace |
Functions
Classes
Simulink Configuration Parameters
Topics
模拟Data
导出(日志)仿真数据是用于分析和调试模型的基线。
You can use many formats for logged data, including Dataset, MATLAB timeseries, arrays, and structures. Supported data formats vary between different logging techniques. However, Dataset format is available for all logging techniques.
要转换一个包含以数据集格式以外的格式登录的数据,以使用数据集格式,请使用simulink.simulationdata.dataset构造函数。金宝app
Work with Big Data for Simulations
Log, load, and analyze big data for simulations.
Reduce the amount of data logged during a simulation.
存储已记录的仿真数据以在垫子中持续存储。
Load big data as simulation input.
Analyze Big Data from a Simulation
访问模拟数据记录到持续存储以进行MATLAB中的分析。
Log Signal Data That Uses Units
Log signal data that uses units by using Dataset or Timeseries logging format for signal logging, the To File block, and the To Workspace block.
Model Configuration Parameters: Data Import/Export
Use the数据导入/导出category of model configuration parameters to specify the simulation results to log and how to format and display the logging output.
MATLAB工作区
Reduce the amount of data logged during a simulation.
Samples to Export for Variable-Step Solvers
Control how much output the simulation generates when your model uses a variable-step solver. Use the Output options configuration parameter.
Signal Logging
Export Signal Data Using Signal Logging
要从模拟捕获信号数据,您可以使用信号记录。标记要记录并启用模型的信号记录的信号。
标记要记录模拟数据的信号。
视图the Signal Logging Configuration
视图the signals that are marked for signal logging.
To log signals marked for signal logging, set the Signal logging configuration parameter.
For a specific simulation run, override the signal logging settings for individual signals marked for logging.
视图and Access Signal Logging Data
视图and access the signal logging data for a completed or paused simulation.
Convert Logged Data to Dataset Format
要转换一个包含以数据集格式以外的格式登录的数据,以使用数据集格式,请使用simulink.simulationdata.dataset构造函数。金宝app
Log Signals in For Each Subsystems
为每个子系统使用信号登录。