Skip to Main Content Skip to Search
Product Documentation

isSignal - Check if signal name is mapped

Syntax

RESULT = isSignal(OBJ, SIGNALNAME)

Description

RESULT = isSignal(OBJ, SIGNALNAME) returns true if SIGNALNAME is an existing mapping in the given TestCase OBJ.

Examples

Create a test case; create two signals within the test case – In1, which is a step, and In2, which is a ramp. Verify that In1 is mapped.

testCase = systest.TestCase('Test Case 1');
testCase.In1 = systest.signals.Signal('Step');
testCase.In2 = systest.signals.Signal('Ramp');

result = isSignal(testCase, 'In1')

How To

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS