Undefined function or variable 'price2ret'
显示 更早的评论
I have installed Matlab in a new computer and try to re-run one of my m files which call price2ret. My m file works before but now the system compliants with "Undefined function or variable 'price2ret'". I have checked my path which correctly points to the toolbox directory. Appreciate if anyone can give me a hand.
回答(3 个)
Walter Roberson
2011-6-19
That can happen if the new system does not have the econ toolbox installed, or if it is not licensed for the econ toolbox, or if the econ toolbox is not on the path, or if MATLAB did not notice it exists.
There is a possibility that if you use
rehash toolbox
that it might appear, but my top suspicion would be on the system not being licensed.
Fara
2011-6-20
0 个投票
1 个评论
Walter Roberson
2011-6-20
"rehash toolbox" is a MATLAB command. http://www.mathworks.com/help/techdoc/ref/rehash.html
The message you are getting is exactly the message I would expect if you are not licensed to use the toolbox. For example, I am licensed to use the Image Processing toolbox but my co-worker the next office over is not named in the license; I can use the Image Processing commands but he just gets told they do not exist.
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!