Recurse into logged Simulation Output Simulink

This function retrieves the timeseries data of the logged Data recursively, it will also recurse into Buses.
다운로드 수: 3
업데이트 날짜: 2024/3/6

라이선스 보기

Logging Data in Simulink is easy, but when using buses it can be hard to access the Data in the Matlab Workspace. Therefore this function recurses into the logsout data object and will extract the Values Data and Time.
function [varargout] = recurseIntoLogsout(SC,varargin)
% This function recurses into the Simulink.SimulationData.Dataset object.
%
% [names] = recurseIntoLogsout(out.logsout) will display all logged Signal Names,
% but will not recurse into Bus Struct. Empty Cell means signal is not
% being propagated in model or has not been given a name.
%
% [data,time] = recurseIntoLogsout(out.logsout, SignalName) will extract
% timeseries Data and Time Values for signal "SignalName".
% Function will automatically recurse into Buses that are being logged.
%
% [data,time] = recurseIntoLogsout(BusStruct, SignalName,1) will recurse
% into Bus Struct and extract timeseries Data and Time Values for signal "SignalName"
%
% INFO: data = NaN or time = NaN means the specified Signal could not be found.

인용 양식

Christian Luciano Maendle (2024). Recurse into logged Simulation Output Simulink (https://www.mathworks.com/matlabcentral/fileexchange/160671-recurse-into-logged-simulation-output-simulink), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2022b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0