File Exchange

image thumbnail

Getting Started with Portfolio Optimization (Files for Video Demo)

version (26.7 KB) by Kawee Numpacharoen
Files for demonstrating how to perform portfolio optimization


Updated 12 Sep 2017

View License

The files are designed to show how to perform portfolio optimization, obtain optimal portfolio, and visualize efficient frontier. The video demo is located here:
Note that you need to download labelpoints from FileExchange too.

Comments and Ratings (13)

Hi Marwa,

For converting .mlx file to .m file, it can usually be done using Live Editor in MATLAB. See here for more details:
However, you are using R2013a, which you don't have the file editor yet. I think you may try this one first.
If it's not possible, please contact our tech support.

Marwa Talbi

Please how can i convert mlx file to m file in matlab R2013a?

jieyu chen

Please check if you have Financial Toolbox installed or not because tick2ret is a function in the toolbox.

Nichanun S

dailyReturn = tick2ret(T{:,3:end});

I cannot use this code on running

Yatri Patel

It seems obvious but make sure you have the files and toolboxs installed before you run the code. If you do this, you can read in the excel file he used.

For R2018b, the dowPortfolio.xlsx is located in ...\MATLAB\R2018b\toolbox\finance\findemostoolbox\finance\findemos

I too am not able to locate the dowPortfolio.xlsx file on my mac. Not sure which directory the Financial tools box installation is made in.

I can not find dowPortfolio.xlsx file on my mac. Financial toolbox is installed but no file :)

Adam Danz


Remove Yahoo API and simplify the example.

Adjust the dates for downloading data without missing values and add screenshot

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: labelpoints