LastInput

The output of the block corresponds to the last value of its input.

    LastInput

Library

Hybrid

Description

The output of the block corresponds to the last value of its input.

When the block is continuously activated, it outputs the value of its input at a previous integration step. This usage is not recommended.

When externally activated by an event, this block outputs the left limit of the input at the time of event. In that case if the block receives a continuous-time signal, the output corresponds to the left limit of the signal at the time of event (note that the event may cause a jump in the value of the incoming continuous-time signal). The left limit is needed for example in some cases when the state of the Integral block is re-initialized.

This block supports matrix data types of double, complex and integers.

Parameters

LastInput_0

NameLabelDescriptionData TypeValid Values

externalActivation

External activation

Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

explicit

output

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no