Question: This is using the MATLAB program to code the following: 6. The voctors below contain prices in dollars of three different stocks. The prices indicate

This is using the MATLAB program to code the following:This is using the MATLAB program to code the following: 6. The

6. The voctors below contain prices in dollars of three different stocks. The prices indicate the stock value cacl day for 10 days. The resonant frequency / (in Hz) for the circuit shown is given by: Lw Stock 1=119 18 22 21 25 19 17 21 27 29) Stock2-122 17 20 19 24 18 16 25 28 271 Stock3=[17 13 22 23 19 17 20 21 24 28] FELCRC- 2 RC- Given 1 = 0.2 H. C = 2 x 10 F, make the fol- lowing plots: (a) / versus R, for 500 SR, 2000 2. given Ri= 1500 12 (b) / versus R for 500 SR, 2000 2. given R = 1500 2. Plot both plots on a single page (two plots in a column). Write a script that Determines how many days the price of stock I was above the prices of both stocks 2 and 3 Determines how many days the price of stock I was above the prices of cither stocks 2 or 3. Determine how many days the price of stock I was above the price of stock 2 but below the price of stock Use fprintf statements to that your calculations for a-c. 7. Create a vector of 40 random numbers using the following command: x=randperm[40). The evaluate the vector y using the following set of cquations: The speed distribution, N(v). of gas molecules can be modeled by Maxwell's speed distribution law yix) = 2 for x -5 d. Z4=Y/(2X) == .0.5 (bs) What lines of code would you write to find the value of at the index value of the minimum value ofu from part(a) 6. The voctors below contain prices in dollars of three different stocks. The prices indicate the stock value cacl day for 10 days. The resonant frequency / (in Hz) for the circuit shown is given by: Lw Stock 1=119 18 22 21 25 19 17 21 27 29) Stock2-122 17 20 19 24 18 16 25 28 271 Stock3=[17 13 22 23 19 17 20 21 24 28] FELCRC- 2 RC- Given 1 = 0.2 H. C = 2 x 10 F, make the fol- lowing plots: (a) / versus R, for 500 SR, 2000 2. given Ri= 1500 12 (b) / versus R for 500 SR, 2000 2. given R = 1500 2. Plot both plots on a single page (two plots in a column). Write a script that Determines how many days the price of stock I was above the prices of both stocks 2 and 3 Determines how many days the price of stock I was above the prices of cither stocks 2 or 3. Determine how many days the price of stock I was above the price of stock 2 but below the price of stock Use fprintf statements to that your calculations for a-c. 7. Create a vector of 40 random numbers using the following command: x=randperm[40). The evaluate the vector y using the following set of cquations: The speed distribution, N(v). of gas molecules can be modeled by Maxwell's speed distribution law yix) = 2 for x -5 d. Z4=Y/(2X) == .0.5 (bs) What lines of code would you write to find the value of at the index value of the minimum value ofu from part(a)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!