Question

In: Mechanical Engineering

Write a MATLAB assignment statement for each of the following functions, assuming that w, x, y, and z are row vectors of equal length and that c and d are scalars.

Write a MATLAB assignment statement for each of the following functions, assuming that w, x, y, and z are row vectors of equal length and that c and d are scalars.

1 f = V2nc/x x + w/(y + z) E = x + w/(y – z) x(2.15 + 0.35 y)1.8 S = z(1 - x)

 

 

Solutions

Expert Solution

Write a MATLAB code for the expression,

f = 1/√2πc/x

 

Let the scalar value be c=5.

And vector can be defined as given below in MATLAB program.

c=5;

x=0:10 % x is vector of numbers between 0 and 10

f = 1./sqrt(2*pi*c./x)

 

Write a MATLAB code for the expression,

E = {(x + w)/(y + z)}/{(x + w)/(y – z)}

 

The vectors can be defined as given below in MATLAB program.

w = 0:10;

x = 0:10;

y = 0:10;

z = 0:10;

 

% let w, x, y, and z are vectors of numbers between 0 and 10

% w, x, y, and z are vectors of equal length.

E = ((x + w)./(y + z))./((x + w)./(y - z))

 

Write a MATLAB code for the expression,

A = e-x/2x/(lny)√dz

 

Let the scalars value be c = 5, and d = 7.

And vectors can be defined as given below in MATLAB program.

c = 5;

d = 7;

w = 0:10;

x = 0:10;

y = 0:10;

z = 0:10;

 

% let w, x, y, and z are vectors of numbers between 0 and 10

% w, x, y, and z are vectors of equal length.

A = exp(-c./(2.*x))./(log(y).*sqrt(d.*z))

 

Write a MATLAB code for the expression,

S = x(2.15 + 0.35y)1.8/z(1 – x)y

 

The vectors can be defined as given below in MATLAB program.

w = 0:10;

x = 0:10;

y = 0:10;

z = 0:10;

 

% let w, x, y, and z are vectors of numbers between 0 and 10

% w, x, y, and z are vectors of equal length.

S = (x.*(2.15 + (0.35).*y).^(1.8))./(z.*(1-x).^y)


Write a MATLAB code for the expression,

f = 1/√2πc/x

Related Solutions

Use one MATLAB statement to generate each of the following scalars and vectors. (These parts are...
Use one MATLAB statement to generate each of the following scalars and vectors. (These parts are sequential) a.) Generate the vector x=(sin5,sin10,sin15,...,sin200) but dont print b.)Find the Max value in X and which index has this value. Print both the index and the value using Disp (so you can use 2 statements) c.)Find the minimum value x and which index has this value. Print both the index and the value using Disp (so you can use 2 statements) d.)Find the...
Assuming that the variables a, b, c, d, and f are scalars, write MATLAB statements to compute and display
Assuming that the variables a, b, c, d, and f are scalars, write MATLAB statements to compute and display the following expressions. Test your statements for the values a = 1.12, b = 2.34, c = 0.72, d = 0.81, and f = 19.83.
The following logic function is given as a sum of minterms F(W,X,Y,Z) = ∑W,X,Y,Z(7,8,10,11,13) + D(5,...
The following logic function is given as a sum of minterms F(W,X,Y,Z) = ∑W,X,Y,Z(7,8,10,11,13) + D(5, 9, 15). (25 points) a) Draw the K-Map and find the minimal sum-of-products expression for this function. b) Draw the circuit implementing this expression c) Give all input pair or pairs where transition between them would create a timing hazard d) Draw the timing diagram showing the glitch corresponding to the pair or one of the pairs. Assume ALL gate delays are equal e)...
Let x, y, z be (non-zero) vectors and suppose w = 12x + 18y + 4z...
Let x, y, z be (non-zero) vectors and suppose w = 12x + 18y + 4z If z = − 2x − 3y, then w = 4x + 6y Using the calculation above, mark the statements below that must be true. A. Span(w, x, y) = Span(w, y) B. Span(x, y, z) = Span(w, z) C. Span(w, x, z) = Span(x, y) D. Span(w, z) = Span(y, z) E. Span(x, z) = Span(x, y, z)
Solve the following system : w ′ + y = sin x y ′ − z...
Solve the following system : w ′ + y = sin x y ′ − z = ex z ′ + w + y = 1; w(0) = 0, y(0) = 1, z(0) = 1
3. (a) Using x, y, z vectors of each atom in a SO2molecule to derive the...
3. (a) Using x, y, z vectors of each atom in a SO2molecule to derive the reducible representation (assuming that the principle axis is collinear with the z axis and the molecule is lying on the xz plane). (b) Classify the irreducible representations into translational, rotational, and vibrational modes. (c) Which vibrational modes are infrared active. (d) Sketch the three vibrational modes including the symmetric stretch, antisymmetric stretch, and symmetric bend. (e) The calculated IR spectrum of SO2show three peaks...
If x = 5, y = 6, z = 4, and w = 3.5, evaluate each...
If x = 5, y = 6, z = 4, and w = 3.5, evaluate each of the following statements, if possible. If it is not possible, state the reason. ((++y) * z) % x (x % y) % (--z) a)     Static_cast<int> ((--y) + x / z) Static_cast<int> (w + Static_cast<double> (x / z + w))
Sketch the level curves f(x, y) = c and the level surfaces f(x, y, z) = c of the functions for the indicated values of c.
Sketch the level curves f(x, y) = c and the level surfaces f(x, y, z) = c of the functions for the indicated values of c.
1. Differentiate the following functions A. y=ln(x+sqrt(x^2 -1)) B. y=ln(sinx) C. y=xlnx-x D. y=e^x(sinx)
1. Differentiate the following functions A. y=ln(x+sqrt(x^2 -1)) B. y=ln(sinx) C. y=xlnx-x D. y=e^x(sinx)
R programing question Generate two vectors x and y of length B=10000 so that each of...
R programing question Generate two vectors x and y of length B=10000 so that each of the entries is independent, with Xi ~ N(0,1) and Yi ~ N(1,4) for i=1,2,...,10000
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT