Question: Comparators Let's start with some scalar testing. First up , create a new varaible ( do an assignment ) called y and initialize the value

Comparators
Let's start with some scalar testing.
First up, create a new varaible (do an assignment) called y and initialize the value to 16.
After this, do four tests:
Jest if y is greater than 17. Assign this test to Answer1
Test if y is less than 14. Assign this test to Answer2
Test if y is equal to 16. Assign this test to Answer3
Test if y is not equal to 13. Assign this test to Answer4
Next, create a new variable called z and initialize the values to a single column vector with increasing values of 15 to 20 in steps of 0.5.
After this, do four more tests:
Test if z is greater than 17 Assign this test to Answer5
Test if z is less than 14. Assign this test to Answer6
Test if z is equal to 16 Assign this test to Answer 7
Test if z is not equal to 13. Assign this test to Answer8
Hint:
1 Transpose Operator might be helpful here to convert row vector into calumn vector
To create row vector with Start-Value. End-Value and Step-Value.Here is the syntax (Start-Value Step-Value: End-Value)
Comparators Let's start with some scalar testing.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!