Code covered by the BSD License  

Highlights from
Example: Creating TimeSeries and TsArray Inputs for Simulink Bus Signal Input Data

image thumbnail

Example: Creating TimeSeries and TsArray Inputs for Simulink Bus Signal Input Data

by

 

06 Aug 2007 (Updated )

Create timeseries inputs for Simulink model root inports that are bus signals.

TimeSeriesData_Simple.m
% Copyright 2006 - 2009 The MathWorks, Inc.
ts1 = CreateTimeSeries(uint8(255*rand(101,1)), 0, 0.1, 'SignalName', 'c1');
ts2 = CreateTimeSeries(uint8(255*rand(101,1)), 0, 0.1, 'SignalName', 'c2');

TsInputSimple = CreateTsArray(ts1,ts2)

Contact us