Table variable subscripts must be real positive integers

3 views (last 30 days)
Using the data from https://la.mathworks.com/help/finance/black-litterman-portfolio-optimization.html, and running the code head(T(:,["Dates" benchmarkName assetNames])), get the following error: Table variable subscripts must be real positive integers, logicals, character vectors, or cell arrays of character vectors. I dont now how to fix it.
thanks
  9 Comments

Sign in to comment.

Answers (1)

Eike Blechschmidt
Eike Blechschmidt on 29 Jul 2021
I guess you just forgot the quotation marks around benchmarkName and assetNames.

Categories

Find more on Numeric Types in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!