Undefined function or variable 'price2ret'
Show older comments
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.
Answers (3)
Fara
on 19 Jun 2011
0 votes
Walter Roberson
on 19 Jun 2011
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
on 20 Jun 2011
0 votes
1 Comment
Walter Roberson
on 20 Jun 2011
"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.
Categories
Find more on Introduction to Installation and Licensing 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!