Table variable subscripts must be real positive integers
3 views (last 30 days)
Show older comments
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
Answers (1)
Eike Blechschmidt
on 29 Jul 2021
I guess you just forgot the quotation marks around benchmarkName and assetNames.
See Also
Categories
Find more on Numeric Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!