time

Class: simscape.logging.Series
Package: simscape.logging

Extract time vector from simulation series

Syntax

ta = path_to_var.series.time

Description

ta = path_to_var.series.time returns a row vector of simulation times contained in the series. path_to_var is a full identifier path to the variable node associated with the series.

Examples

Return simulation time data for the deformation of a Translational Spring block, located at the top level of the model diagram:

t1 = simlog.Translational_Spring.x.series.time

t1 =

         0
    0.0020
    0.0040
    0.0060
    0.0100
    0.0140
    0.0180
    0.0220
    0.0260
    0.0300
    0.0340
    0.0380
    0.0420
    0.0460
    0.0500
    0.0540
    0.0580
    0.0620
    0.0660
    0.0700
    0.0740
    0.0780
    0.0820
    0.0860
    0.0900
    0.0940
    0.0980
    0.1020
    0.1060
    0.1100
    0.1140
    0.1180
    0.1220
    0.1260
    0.1300
    0.1340
    0.1380
    0.1420
    0.1460
    0.1500
    0.1540
    0.1580
    0.1620
    0.1660
    0.1700
    0.1740
    0.1780
    0.1820
    0.1860
    0.1900
    0.1940
    0.1980
    0.2000
Was this topic helpful?