OK, I'm fairly new to the Matlab, and it's first time installing a custom toolbox. I'm using Matlab R2015a on 64-bit Windows machine and tried to install third-party toolbox. I used addpath C:\WhereToolboxUnpacked and then savepath
ver call shows that Toolbox is installed, however Matlab seem to cannot find a function from it! Simple example from here gives an error:
Undefined function 'model' for input arguments of type 'char'.
Error in run_my_model (line 10)
m = model('my_simple_rbc.model');
help model returns
help for xregdesign/model
It seems that this model is not from my installed toolbox.
Related
I am trying to construct a decision tree. I tried using the fitctree function and wrote:
ctree = fitctree(TrainingX,TrainingY);
such that TrainingX is the input matrix and TrainingY is the target matrix. An error appears saying that:
Undefined function 'fitctree' for input arguments of type 'double'.
I don't know what is the problem and what should I do to solve it. Could you please help me?
The reason why it is undefined is because fitctree requires the Statistics Toolbox in MATLAB. If you don't have the Statistics Toolbox, you can't use this function and you're SOL. Sorry!
Even with the Statistics Toolbox, fitctree is only available for recent editions of MATLAB (R2014a+). Check the release notes on the Statistics Toolbox for more details: http://www.mathworks.com/help/stats/release-notes.html. Go to where R2014a is and fully expand out all of the facts by clicking on Expand All. Where you see "Functions for classification methods and clustering", you'll see an entry for fitctree there.
The only option would be to upgrade your version of MATLAB to at least R2014a or above.
Good luck!
I would like to use the function evalclusters from the statistics toolbox in matlab, but matlab is unable to find the function when I call it.
help evalclusters
returns 'evalclusters not found.'
The statistics toolbox is installed [license('test','statistics_toolbox') returns '1'].
Thanks!
evalclusters was added with Matlab 2013b and extended with 2014a, it is not available in Matlab 2013a.
In case upgrading Matlab is not an option, current Octave Statistics package includes it as well. (Open-Source alternative to Matlab which basically uses the same syntax)
I have a bunch of scipts and MEX-files that developed for MAtlab 2011a version. They doesn't work on 2013b version. But Matlab 2013b has a function with desired functionality... So how can I run scipts in Matlab 2011a, but with call one function from 2013b version?
I have error
Unexpected Standard exception from MEX file.
What() is:
Device -1: deviceMatrix(): no CUDA-capable device is detected
what looks like unsolvable for me because I cannot rewrite MEX-file.
There is CUDA-device which is detected fine by 2011a version.
I'm asking a particular question. I cannot rewrite MEX-file because I do not want to dive into it - it is not my code and I don't know CUDA and that way that I'm asking for looks like much simpler for me at least at this step of my work. Later if function will fits for me I will think about going to Matlab 2013b version.
Yes, CUDA is aviable on Matlab 2013b.
When the use the following code
imshowpair(Image1, Image2,'montage');
The following error occurs
??? Undefined function or method 'imshowpair' for input arguments of type 'uint8'.
I am using MATLAB version R2010a.
Give me a solution.
imshowpair was introduced in image processing toolbox for MATLAB 2012a. So you could upgrade your MATLAB.
I have recently installed matlab R2012a when i type ver i see
Computer Vision System Toolbox Version 5.0 (R2012a)
along with other toolboxes. I suppose this means that the toolbox is installed?
When i try to run
videoOut = insertObjectAnnotation( double(videoFrame), 'rectangle', bbox, 'Face');
Similar question "error in Undefined function 'insertObjectAnnotation' in matlab" suggested using double but when i run it i get
Undefined function 'insertObjectAnnotation' for input arguments of type 'double'.
So i run which insertObjectAnnotation after which i get 'insertObjectAnnotation' not found.
What does it mean and how should i solve this ?
The function insertObjectAnnotation was introduced to Matlab in R2012b. Therefore, it is not available in your version of Matlab.