I have a project in a course at the university that requires various Matlab functions. My version of Matlab is supplied by my workplace, and it doesn’t have some of the toolboxes that are required for the project. Is there some repository of such implementations anywhere? I couldn’t find anything relevant when I googled.
While my question is general, I’m listing the functions that I need and can’t find, since my question is also specific:
knnclassify– an implementation of K-nearest neighborssvmclassify– an implementation of Support Vector Machinessvmtrain– part of the SVM implementationmapstd– normalizes a matrix to have a mean of 0 and standard deviation of 1
An alternative I’m considering is working in Python with Numpy and Pylab. Are there toolboxes in Pylab that are equivalent to these Matlab functions?
The first place I would check is the MathWorks File Exchange. There are over 10,000 code submissions from MATLAB users, and you may be able to find alternatives to the various MATLAB toolboxes. Here’s something that may be helpful:
Another alternative for a simpler function like MAPSTD is to try and implement a stripped-down version of it yourself. Here’s some sample code that replicates the basic behavior of MAPSTD:
This obviously won’t cover all of the options in MAPSTD, but captures the basic functionality. I can confirm that the above code gives the same result as
mapstd(M).