Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The file AAPL.csv contain the stock prices of Apple Inc. (AAPL) for the past eight years (Jan 2, 2015 to Feb 3, 2023).1 The data

The file AAPL.csv contain the stock prices of Apple Inc. (AAPL) for the past eight years (Jan 2, 2015 to Feb 3, 2023).1 The data has seven columns (i.e. Date, Open, High, Low, Close, Adj close, and Volume). Write a MATLAB script to a) Open and read in the data file b) Display and plot the i) High, ii) Low, iii) Close price, and iv) Volumes of this stock vs. time as four separate plots. c) Calculate the average price by using this formula: (Open + Close) / 2. Then write this information as the eighth columns in the date in AAPL.csv file with column label Average. Do not change AAPL.csv. Save the new data into a file named APPL- new.csv. Can i get a sample code for this?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions