Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

matlab question&&&&&&& matlab@@@@@@ matlab@@@@@@@ matlab matlab qestion &&&&& matlab matlab matlab matlab matlab matlab matlab matlab Problem 2: Matrix Vector Operations [5pt] a) Create a

matlab question&&&&&&&
matlab@@@@@@
matlab@@@@@@@
matlab matlab qestion &&&&&
matlab
matlab
matlab
matlab
matlab
matlab
matlab
matlab
image text in transcribed
Problem 2: Matrix Vector Operations [5pt] a) Create a program named my_dot Product which USING LOOPS calculates the dot prod- uct of two vectors (of dimensions 1 x n) from the keyboard. The program should check the input from the user making sure that the vectors are the right dimensions. If the vectors are not then an error message should be outputted to the user. If the vectors are of the right dimensions then the answer should be outputted to the user. Using your code, complete the following table: 31-2j+4k 2i+2j-3k 0i+Oj-1k1i-Oj+Ok 21+13+2k -li+2j+5k b) Create a program named my_arrayCount which inputs an n xm array and determines (USING LOOPS) how many elements in the array are greater than zero and how many are less than zero. The program should then output the answers. Using your code, complete the following table: n (>0) n (

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

Step: 3

blur-text-image

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

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

an element of formality in the workplace between different levels;

Answered: 1 week ago