Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

1. Design an effective socialization program for employees.

Answered: 1 week ago