Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: How to Plot Stock Returns on a Chart

$
0
0
Oh, yeah, you are right. I thought those dates had to numbers. Anyway, how did you determine what the problem was. I was stepping through the code; using Breakpoints and tapped the F11 key so many times...I couldn't figure it out. How did you figure it out???


"Phil Goddard" <phil@goddardconsulting.ca> wrote in message <k830kr$ili$1@newscl01ah.mathworks.com>...
> Your spreadsheet does not have the same format as the format required by the code you show.
> Your first column are numbers not dates (yes they represent dates, but they are already numbers).
> Hence the txt variable only has one row (the column headers) and
> >> DATE = txt(2:end,1);
> is empty.
> Hence your data variables are empty and there is nothing to plot.
>
> You need to change your initial date/data processing to reflect your actual data file.
>
> Phil.

Viewing all articles
Browse latest Browse all 19628

Trending Articles