user1903135
user1903135

Reputation: 25

Build simulink blocks with relational operators

How to build the simulink blocks equivalent to below statement.

if((In1 == In2) || (In3 != In4))
{
    SubSystem1(In5);
}

Thanks in Advance.

Upvotes: 0

Views: 711

Answers (1)

macduff
macduff

Reputation: 4685

I think what you're looking for is in the comment and here is a pictorial view:

Simple Logical Model

However, if you're going to be doing a lot of logic based code you'll want to look at Stateflow, if you have that product available.

Upvotes: 1

Related Questions