x = linspace(1,10,10);
a=[19,18,22,21,25,19,17,21,27,29];
b=[22,17,23,24,18,16,25,28,27,27];
c=[10,11,12,13,19,17,20,21,24,28];
plot(x,a);
hold on;
plot(x,b);
hold on;
plot(x,c);
xlabel('days') ;
ylabel('Doller($)') ;
legend('a','b','c');
title('Stock data');
In Matlab The arrays price A, price B and price C given below contain the price...
10. (12 points) The arrays price A, price B and price C given below contain the price in dollars of the three stocks over 10 days. price A = [19, 18, 22, 21, 25, 19, 17, 21, 27, 29] price B = [22, 17, 23, 24, 18, 16, 25, 28, 27, 27] price C = [10, 11, 12, 13, 19, 17, 20, 21, 24, 28] For the stock data, write a MATLAB code to plot the stock price vs. days...
mathlab 10. (12 points) The arrays price A, price B and price C given below contain the price in dollars of the three stocks over 10 days. price A = [19, 18, 22, 21, 25, 19, 17, 21, 27, 29) price B = [22, 17, 23, 24, 18, 16, 25, 28, 27, 27] price C - [10, 11, 12, 13, 19, 17, 20, 21, 24, 28) For the stock data, write a MATLAB code to plot the stock price vs....
Project in matlab. I have the correct ak value but not the correct ao value. My code is attached below also 2. Determine and plot the magnitude and phase spectrum of the Fourier series coefficients a, that is, plot ja, I as a function of discrete frequencies Jok and La, as a function of discrete frequencies fok 03 025 蓋0.2 0.15 0.1 o o5 ·10-8-6 4610 phase -2 -2 8- t= 0: .01:4; 9- to = 4; 10- fo =1/4;...
i got it incomplete sorry I put this by mistake. can this be canceled? 4. Use MATLAB or Scilab to implement linear regression, and plot the points and the curve for the following data sets. x [018 12 27) and y [12345 Input: (copy and paste the MATLAB or Sclab commandin the folowing bax) cic X1-101 8 12 271: Y1-11 234 5] Y-transpose(Y1) for n-1:5 X(n,2)-X1(n) end format long ycalc-S(2) X+S(1); scatter(X1,Y1) hold on plot(X,ycalc) xlabel(X) ylabel(Y) title('Linear Regression Relation...
Therefore, for this program you will read the data in the file named weatherdata_2.txt into arrays for the wind speed and for the temperature. You will then use the stored data to calculate and output the average wind speed and the average temperature. Create a constant with a value of 30 and use that to declare and loop through your arrays and as a divisor to produce your averages. Here is the data file (below). 1. 14 25 2. 12...
1 A measurement systems experiment involving 20 parts, three operators, and two measurements per part is shown in Table 8E. 12. (a) Estimate the repeatability and reproducibility of the gauge (b) What is the estimate of total gauge variability? (c) If the product specifications are at LSL 6 and USIL - 60, what ca you say about gauge capa bility? TABLE 8E. 12 Measurement Data for Exercise 8.34 Operator 1 Operator 2 Operator 3 Measurements Measurements Measurements Part Number 1...
Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine library procedures Objectives: 1. using register indirect addressing 2. passing parameters 3. generating “random” numbers 4. working with arrays Description: Write and test a MASM program to perform the following tasks: 1. Introduce the program. 2. Generate ARRAYSIZE random integers in the range [LO = 10 .. HI = 29], storing them in consecutive elements of an array. ARRAYSIZE should be set to 200....
on 13 of 18> The Department of Energy provides fuel economy ratings for all cars and light trucks sold in the United States. The table contains the estimated miles per gallon for city driving for the 186 cars classified as midsize in 2016, arranged in increasing order. 16 16 16 16 16 16 16 16 16 16 16 16 1617 17 17 17 17 18 18 1818 18 18 18 18 18 19 19 19 19 19 19 19 19...
I need this program in MATLAB with different or another code. INPUT: x = [0 1 8 12 27]; y = [1 2 3 4 5]; nx = length(x); ny = length(y); n = length(x); if nx ~= ny display('Error. La cantidad de datos en x no es igual que los datos en y') end Sx = sum(x); Sxx = sum(x.^2); Sy = sum(y); Sxy = sum(x.*y); a1 = (n*Sxy - Sx*Sy)/(n*Sxx-(Sx)^2); a0 = (Sxx*Sy - Sxy*Sx)/(n*Sxx - (Sx)^2); m...
Solve using Minitab. The table is observations on weekly operational downtime on a critical equipment (order read top to bottom and left to right). The target value for the mean is 25. (a) Estimate the process standard deviation. (b) Set up and apply a tabular cusum chart for this process using standardized values h 5 and k = 2. (c) Interpret the cusum chart - 27 24 22 27 25 27 23 20 28 29 24 28 20 29 21...