a=15
b=pi
c=e^(i)(pi)
how do I write these functions as a command in MatLab?
MATLAB functions used and their explanations
abs: to evaluate absolute value
in matlab log means ln and log10 mean snatural logaritham
log.
sqrt: sqaure root
in matlab sin(x) expression x will be taken in radians. sind(x) in
this x will be taken in degrees
given expressions in matlab
first assign the given a,b and c values
a=15;
b=pi;
c=exp(i*pi);
now type following lines of code one by one
k=sin(b)^2+cos(b)^2
l=abs(c)
m=(log10(a*sin(b))+log(b*sin(a)))/sqrt(l)
output:
a=15 b=pi c=e^(i)(pi) how do I write these functions as a command in MatLab? k =sin?...
Exercise 1: Use Matlab command to obtain the following a) Extract the fourth row of the matrix generated by magic(6) b) Show the results of 'x' multiply by 'y' and 'y' divides by 'x'. Given x = [0:0.1:1.1] and y=[10:21] c) Generate random matrix 'r' of size 4 by 5 with number varying between -8 and 9 Exercise 2: Use MATLAB commands to get exactly as the figure shown below x=pi/2:pi/10:2*pi; y=sin(x); z=cos (x);
C. Execute the following statements in MATLAB: 1. A=3*5 2. A=2^10 3. A-abs(3 + i*4) 4.x=pi/2; A = 10*sin(x) 5.x=pi/4; A = 5*cos(x) 6. A=2*exp(4) 7. A=2*exp(i 2) 8. A-20*sin(pi/4)*exp(-2) C. Execute the following statements in MATLAB: 1. A=3*5 2. A=2^10 3. A-abs(3 + i*4) 4.x=pi/2; A = 10*sin(x) 5.x=pi/4; A = 5*cos(x) 6. A=2*exp(4) 7. A=2*exp(i 2) 8. A-20*sin(pi/4)*exp(-2)
Find the derivatives of the following functions. a) f(x) = sin(x²) b) g(x) = ln(cos(x)) c) h(z) – In(1002? + 47x)? d) k(z) = resin(2)
2. (4pts each) Find the derivative of the following functions: You do not need to simplify the answer. CIRCLE FINAL ANSWER. a. f(x) = 2x2e-1 + 7e2x-1 + 3e2e cos (36) b. g(t) = 1+sin(3) c. h(x) = ln(x2). arctan(kx) (k E R) d. f(x) = sin(x) sin(x)
Circuit Analysis: Need help writing this into MATLAB. I do not
need it in paper I need help putting it into MATLAB. * DO NOT WRITE
ON PAPER* Please use MATLAB and post your code. Thank you.
My work completed. Please help me in make code for the above
circuit ^.
Here is my work for Part 3 that is needed to complete this part
4. ( could not solve the last part)
Part 4. AC Solution by Phasor Analysis...
Write the complex number in the form a + bi. 5) Vocos 315º + i sin 3159) 5) Perform the indicated operation. Write the answer in the form a +bi. 8(cos i sin 6) 3(cos + i sin 7) Draw a picture and label all the parts. Solve the triangle for the 3 missing parts. 7) a-8.3 b - 13.8 c=15.7 Also ...Give me the area:
Use
Matlab code
Consider the following function sin(x) Using the following parameters in your functions: -func: the function/equation that you are required to integrate -a, b: the integration limits n: the number of points to be used for the integration I:Integral estimate a) Write a function capable of performing numerical integration of h(x) using the composite trapezoidal rule. Use your function to integration the equation with 9 points. Write a function capable of performing numerical integration of h(x) using the...
2. Write the cosine based phasors in complex number form (a + b) for the following time functions. a. 10 cos(ot + 90) b. 10 sin(ot +90) c. 10 sin( 30) 3. Determine the time-domain functions associated with each of the following phasors. a. -2-i2 c. 4-i6 Write the mesh equations in matrix form (you do not have to solve them) for the following eircuit, using the phasor approach. (Hint: It helps to write the phasor quantities on the circuit...
Can you do part A through B please?
2 Euler's formula relates the complex exponential to trigonometric functions as e" = cos(9) + j sin(9) This problem considers two alternate forms of Euler's formula. (a) Show that we can represent cos(0) in terms of complex exponentials as eje +e-je cos(e) (b) Derive a similar expression to part (a) for sin(e) (c) Use the results of part (a) to hand com pute cos(2). Verify your result with MATLAB. This result conflicts...
How to write this on matlab ? I have the code from maple .... please help me ... ASAP.... I a: 9 230:= ln ('a't k3 ) 6 C'B'CK]) (3012 ln('a'ck]) d3o Sa, ( ''k)) eso - Conc'a'ck)? SSEL : (enl' b'cic) – en c'a'ox))? SSET = 6 concate) Kat