Daily Return plot without interpolating lines

4 visualizaciones (últimos 30 días)
Sana Ejaz
Sana Ejaz el 2 de Abr. de 2019
Comentada: Sana Ejaz el 3 de Abr. de 2019
I want to plot my daily returns against dates.I want a plot similar to the one I have attached(returns.jpg).
But when I use below code
plot(dates,returns)
I get a plot like the attached file StockReturns.Pdf.
Can someone help me plot my daily returns similar to the plot return.jpg ?

Respuestas (1)

Stephan
Stephan el 2 de Abr. de 2019
Hi,
try:
plot(returns)
Best regards
Stephan
  3 comentarios
Stephan
Stephan el 3 de Abr. de 2019
can you attach your data?
Sana Ejaz
Sana Ejaz el 3 de Abr. de 2019
Hi,
I need above mentioned graph for the average daily returns but I dont have dates in this file and I don't know how I can add dates in this file.in this file each column represent an year and the rows represent dates in that year.i.e. value in row 1 column 1 is for 1 Jan 1990 and value in row1 column 2 is for 1 jan 1991 so on.
The graph I attached earlier was just for example.Attached with this comment is my actual data.
Would highly appreciate if you can help me out.

Iniciar sesión para comentar.

Categorías

Más información sobre Calendar en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by