Question: Assuming that the matrix dimensions agree, create, and test MATLAB functions to evaluate the following simple mathematical functions with multiple input vectors and a

Assuming that the matrix dimensions agree, create, and test MATLAB functions toevaluate the following simple mathematical functions with multiple input vectors and asingle output vector. 1. z(x, y) = x + y 2. z

Assuming that the matrix dimensions agree, create, and test MATLAB functions to evaluate the following simple mathematical functions with multiple input vectors and a single output vector. 1. z(x, y) = x + y 2. z (a, b, c) = abe 3. z (w, x, y) = we(x/y) 4. z (p, t) = p/sin(t) Assuming that the matrix dimensions agree, create, and test MATLAB functions to evaluate the following simple mathematical functions with single input vector and a multiple output vectors. 5. f(x) = cos(x), f(x) = sin(x) 6. f(x) = 5x+2, f(x) = (5x+2)/2 7. f(x) = exp(x), f(x) = ln(x) Assuming that the matrix dimensions agree, create, and test MATLAB functions to evaluate the following simple mathematical functions with multiple input vectors and a multiple output vectors. 8. f(x, y) = x + y, f(x, y) = x - y 9. f(x, y) = yex, f(x, y) = xey 6789 UN MASS7 9 10 11 L2 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 10 1 12 13 14 15 16 17 18 19 50 51 52 53 54 0 %% Prroblem 6.2 %1. function r1-z(x,y) r1=x+y; end %2. function r2=z2(a,b,c) t1=b.^c; r2 =a. *t1; end %3. function r3=z3 (w, x,y) t1=x. /y; t2=exp(t1); r3=w. *t2; end %4. function r4=z4(p,t) t1=sin(t); r4=p./t1; end %5. function [x, y]=f5(t) x=cos (t); y=sin(t); end %6. function [x, y] =f6(t) x=( 5.*t. ^2)+2; y=sqrt(x); end %7. function [x, y]=f7(t) x=exp(t); y=log(t); end %8. function [x1, y1]=f8(x,y) x1=x+y; y1=x-y; end %9. function [x2,y2]=f9(x,y) t1=exp(x); t2 =exp(y); x2=y. *t1; y2=x. *t2; end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets break down the given MATLAB functions step by step and provide explanations for each function along with their corresponding tasks Part 1 Functio... View full answer

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!