Question: Create an 1 D array called y 3 of size 1 times 8 which contains random numbers with values between - 1 and 3

Create an 1D array called y3 of size 1\times 8 which contains random numbers with values between -1 and 3. Write
one line of code to replace all values which are less than 0.8 with -1.
Using MATLAB

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!