Question: Create a script that will determine if number of a matrix are positive, zero or negative. The program will create an output matrix with -1,

 Create a script that will determine if number of a matrix
are positive, zero or negative. The program will create an output matrix

Create a script that will determine if number of a matrix are positive, zero or negative. The program will create an output matrix with -1, 0 and 1 that replaces negative, zero and positive numbers, You must use a nested for loop and conditional statements 1. nesptetivc) Mat [0 4-3;-102] Output [01-1;-10 1] 2. Write a for loop that will print the elements from variable sentence Tormat, regardless of the length of the vector. For example, if this is the vector >>vec [ 5.5 11 3.45] This would be the result: Element 1 is 5.50 Element 2 is 11.00 Element 3 is 3.45

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!