Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Trouble running samples from the ‘Using MATLAB to Optimize Portfolios with Financial Toolbox’ demo.

Subject: Trouble running samples from the ‘Using MATLAB to Optimize Portfolios with Financial Toolbox’ demo.

From: Ryan

Date: 8 Oct, 2012 18:41:10

Message: 1 of 1

I’m experimenting with the code samples from the ‘Using MATLAB to Optimize Portfolios with Financial Toolbox’ demo. I downloaded the code and copied/pasted it into my standard Matlab path/directory.
I have the 7 m-files from the download in my standard Matlab directory (I didn’t copy over the readme text file). Also, I’m not exactly sure how to work with the MS Access shortcut named ‘BlueChipStocks’. So, for this one, I just clicked OpenFolder, selected this specific file, and clicked ‘Open’. Finally, I have 1 folder named ‘@PortfolioDemo’ and 2 m-files in there; ‘maximizeSharpeRatio’ & ‘PortfolioDemo’

When I run the ‘part1_intro’ or ‘part1_intro_plot’ m-code, I keep getting this error message:
Undefined function 'part1_intro_plot' for input arguments of type 'cell'.

Oh, one more thing, there were lots of NANs in the data file, so I deleted all columns with NANs. Before I didn this, nothing at all would work. After I did that, it still didn’t work correctly.
Can someone please tell me what I’m doing wrong here?

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us