Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

I need help with number 3, it is for matlab. Thank you. corresponding element in y and use it to find xpy (5) >> xey

image text in transcribedI need help with number 3, it is for matlab. Thank you.

corresponding element in y and use it to find xpy (5) >> xey - pousev (MY) , xpy(5) = 14 S 3IS c) create a variable called yoverx that divide each element of y by the corresponding element in x. >> _Yourx = */y yoverx(6)= -1. So oo d) Multiply each element in x by the corresponding element in y, calling the result z.:>>z= X.Y What is the value of z'*z 4 5 6918 e) Find the sum and the product of the elements in the vector mx - ky sum= -| Product= - 4. 6 6 10 e 10 3. Clear your workspace. Given the Matrix A = [9:-1:7;1:3:23,34,12|| a) create a vector sl that is the sum of the column element of A and list your values 44 a. what command did b) Find the maximum value in A (I am looking for one value): you use >> c) what command will you use to find the average of the diagonal elements of A. >> what is the average d) Create a row vector from A using only the column one elements and call it x. Then create a row vector from A using the last element of column one followed by the last two elements of column 3 and call it y. Write the command you used to create the two vectors: >>x= >>y = e) Use x and y above to get the dot product of x and y. Also find the cross product of x and y. dot product of x and y Cross product of x and y 4. Clear your workspace. Perform the following operations and write the commands you used. a. Create a vector A of the even numbers between 21 and 56: >> A = b. assign the even-numbered columns of A to an array called B: >>B=

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions