Question: 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,

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, test if x is greater than 17, less than 14, equal to 16, and not equal to 13. Assign these to Answer1, Answer2, Answer3, and Answer4 respectively. 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. Now perform the same set of tests from the first section here, but assign to Answer5, Answer6, Answer7, and Answer8

I ran into an issue with z being the wrong size, [1 11], when it is supposed to be [11 1]. Thank You.

y=16

Answer1=[y>17]

Answer2=[y<14]

Answer3=[y==16]

Answer4=[y~=13]

z=(15:.5:20)

Answer5=[z>17]

Answer6=[z<14]

Answer7=[z==16]

Answer8=[z~=13]

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 Databases Questions!