q1/Find the average temperature in Jeddah weekly period (Use FOR loop. Do not use sum and mean built in functions). A = [28 35 36 30 38 32 38]
q2/Use if condition to graph the relation y=f(x) where.(Use for, if and plot)
y= x+2x 0<= x <=3
y= 4x+2 4<= x <8
y= x^2 - 4 8< x <13
MATLAB
1. To find the average temperature in Jeddah, we execute the following commands in MATLAB -
A = [28 35 36 30 38 32 38];
% Initialize
Sum = 0;
% For Loop
for k = 1 : length(A);
fprintf('Element %d is: %0.1f \n', k, A(k));
% Accumulate the sum
Sum = Sum + A(k);
% Compute the running mean and print out.
fprintf('After element #%d, the sum = %.1f, and the mean =
%.3f\n\n',...
k, Sum, Sum/k);
end
This gives the average temperature as 33.857.
2. To plot the given conditional function, we execute the following commands -
x = 0:13;
for x=0:13
if x<4
y(x+1) = x + 2*x;
elseif x>=4 && x<8
y(x+1) = 4*x + 2;
else % convers the remaning possible x
y(x+1)= x^2 - 4;
end
end
x = 0:13;
plot(x,y);
xlabel('x');
ylabel('f(x)');
We obtain the following plot -
*Please give a positive review. Thank you.*
q1/Find the average temperature in Jeddah weekly period (Use FOR loop. Do not use sum and...
0
I need help with 30,33,35,36,37,38
the instructions for 30 and 33 are. find the vertex and any two
convenient points to sketch the graph of the follwing functions
- -**+- 2 -(x + 2) + 1 21. f) 30. FOX) -- М. 31. g) 3 32 g(x) = 2x2 + 4x + 3 33. g(x) = -2x + 8x - 3 34. g(x) = -3x + 6x For each of the following equations, find the coordinates of the vertex,...
Q1 Please use this sample dataset to answer the following questions: 3 26 38 22 21 35 10 16 13 22 13 25 28 36 10 4 17 15 46 32 (1) Please calculate mean, median, and mode. (2) Please calculate sample variance and sample standard deviation. (3) Please draw the stem-n-leaf plot.
Q1 Please use this sample dataset to answer the following questions: 3 26 38 22 21 35 10 16 13 22 13 25 28 36 10 4 17 15 46 32 (1) Please calculate mean, median, and mode. (2) Please calculate sample variance and sample standard deviation. (3) Please draw the stem-n-leaf plot.
5) An N-point moving-average (running-average) system has the following input-output relation ship: N-1 a) Is the N-point moving-average system causal? b) Obtain the expression for the impulse response h[n] and sketch hin. c) Given the input sequence [n] below with 100 elements where the values of the index n change between 0 and 99: r-[21 22 22 21 18 19 21 20 19 23 23 22 23 25 27 30 31.5 32 33 32 28 29 28 29 30 32...
32 , 42
332 CHAPTER 4 Polynomial Functions and Rational Functions 56.7x2 + 4x In Exercises 5 g(x) 57. What are 58. What is th 59. Given an inputs. 60. Movie Tic movie tic years, risi (Source: ers). Usin function, Let xrерr Then use price of a Using synthetic division, determine whether the numbers are zeros of the polynomial function. 31. -3,2; f(x) = 3x + 5x2 - 6x + 18 (32. -4,2; f(x) = 3x + 11x? - 2x...
Find the x-intercept and the y-intercept of each equation. 33. - 3x + 2 y = 12 34 34. 2x – 3y = 24 CHAP FUN Find the slope of the line through each pair of points. 36. (-8, 6) and (-8,-1) In ma relati types an ir 35. (-12, 3) and (-12, -7) 37. (6, -5) and (-12,-5) Find the slope of each line. 38. 3x – 2y = 3 40. x = 6 39. y = 5x +12...
Q1 Write the following function in terms of unit step functions. Hence, find its Laplace transform 10<tsI g(t) = le-3, +1 , 1<t 2 .22 Q2 Use Laplace transform to solve the following initial value problem: yty(o)-0 and y (0)-2 A function f(x) is periodic of period 2π and is defined by Q3 Sketch the graph of f(x) from x-2t to2 and prove that 2sinh π11 f(x)- Q4 Consider the function f(x)=2x, 0<x<1 Find the a Fourier cosine series b)...
PLEASE SOLVE NUMBER 3 AND
SHOW ALL WORK
1.Find the particular implci solution to the difterential equatiothat satisfies the condition 1. Find the particular implicit solution to the differential equation dx y y(7)- v5. Sketch a graph of your solution. 2. Write and solve the differential equation the models the verbal statement. Simplify the explicit solution. Temperature of the body and the constant temperature of its surrounding medium M." of a body is directly proportional to the difference in the...
b d
snd e only
Elementary Jon 25 34 Problem #2 (12 points) The following data set represents the miles per gallon rating for 30 ca 23 21 33 41 32 40 39 20 30 37 21 30 38 191919 26 28 29 35 35 36 32 38 38 (4 pts) a. Obtain the five-number summary for the data. (The five-number summary is: Minimum, Q1, Q2, Q3, and Maximum) (1 pt) b. Use the interquartile range (IQR) rule to identify...
NOTE: WRITE MATLAB CODE then the results for each QUESTIONS: Q1: For the system of the equations [2x; + 3xy + x3 = 9 x2 + 2x2 + 3x3 = 0 3x; +x2+2x3 = 8) compute the unknowns Xı, X2, and X3 using the inverse matris method. Q2: Simplify the complex number z and express it both in rectangular and polar form. (3+ j4)(5 + j2)(2 260°) (3+j6)(1+12) NOTE: WRITE MATLAB CODE then the results for each QUESTIONS: Q3: Suppose...