Answered step by step

Verified Expert Solution

## Question

1 Approved Answer

# 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 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

### Step: 1

Lets break down the given MATLAB functions step by step and provide explanations for each function along with their corresponding tasks Part 1 Functio...### Get Instant Access to Expert-Tailored Solutions

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

### Step: 2

### Step: 3

## Ace Your Homework with AI

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

Get Started