필터 지우기
필터 지우기

Daily Return plot without interpolating lines

조회 수: 1 (최근 30일)
Sana Ejaz
Sana Ejaz 2019년 4월 2일
댓글: Sana Ejaz 2019년 4월 3일
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 ?

답변 (1개)

Stephan
Stephan 2019년 4월 2일
Hi,
try:
plot(returns)
Best regards
Stephan
  댓글 수: 3
Stephan
Stephan 2019년 4월 3일
can you attach your data?
Sana Ejaz
Sana Ejaz 2019년 4월 3일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by