I am having problem with implementing LibSVM to MATLAB.I am using MATLAB R2009a (I also have the latest version, R2012b, but I dont use that one)I downloaded LibSVM package, libsvm-3.14 to my Windows 7 PC, which MATLAB and OCTAVE interface come together.
I did that, however, it didn't work out. I will be grateful if you help me clearly. I just read README file, but it's not clear to understand and there is no other instructions online on the internet.
For the time being, it does not matter where you put that folder. You'll have to compile the Matlab-MEX files, from the source code that resides in the matlab subfolder of your extracted libsvm package.
Now, in the ROOT/matlab folder, you should have obtained two MEX files (with the .mexw32 or .mexw64 extension). These are the files that you will use from now on. You can discard the rest, except those files (and, maybe, some other generated libraries).
So, next step would be to create a subfolder called libsvm/ under your's Matlab/toolbox folder, copy the two MEX files therein and, then, add that libsvm/ folder to the Matlab Path (not the Path of your system, but of your Matlab installation).
With the aid of @axeoth, here is the solution. I followed instruction files in matlab subfolder of extracted libsvm package. I downloaded and installed Microsoft Visual Studio 2010 and wrote 'mex -setup' on command window of MATLAB to choose a suitable compiler for mex (I use MATLAB R2012b in 32-bit PC, so I found supported compilers in this link ) After then, I followed @axeoth's instructions. I changed the name of the folder to ROOT and moved it to Documents/MATLAB. I started MATLAB and on command window, I wrote these below "one by one"
then I copied everything obtained in ROOT/matlab subfolder. I created a new folder named libsvm under MATLAB/toolbox folder and pasted everything there. and then, I added that libsvm/ folder to the Matlab Path by using "Set Path" button on MATLAB R2012b. After then I wrote "svmtrain" and "svmpredict" so I got the helps of these two commands.
For those having major compiler problems I thought I'd leave some extra information on the subject of installing compilers. This was a frustrating problem I had an ended up contacted MATLAB for help. I would have commented in the above posts but I do not have enough "rep" so here it is:
I was unable to install Microsoft Windows SDK 7.1, whether via Microsoft Visual Studio 2010 or otherwise. I found out that this was because I had a certain version of Microsoft Visual installed (version 10.0.04... was the cause of the problem for me). The work around was to uninstall Visual, install SDK 7.1 independently and then re-install Visual after. The process is written up in greater detail in the link below:
It may also be that you have the compiler installed but that it wasn't recognised until MATLAB "found" it. This happened to me after the re-install. To check if you have the correct compiler and "find" it run mex.getCompilerConfigurations('Any','Installed') to get a full list. Then do mex -setup using the SDK 7.1 choosing the C/C++ version over FORTRAN.
Using pre-built libraries for matlab that are correctly installed and in the path, I sometimes get the same error. If I type in the function name at the command-line, the function is visible and will auto-complete. However, the function will not initialize until I 'cd' into the directory with the .mexw64 library file.
In my case, two DLL's weren't showing up properly, even though they were on my system and in the path. I copied the DLL's into the windows/system32 folder and the library functions now work correctly. What's particularly strange is that the same library worked on my computer a few days ago (prior to the moving the DLL's).
If you built it with Visual Studio, it may be linked to the Visual C++ Runtime. This is a set of libraries that is not installed on Windows by default. The "redistributable" for it can be downloaded here; having your coworker install that could resolve the problem. If that doesn't work, you can use Dependency Walker to check for other unsatisfied DLL dependencies.
NaoQi-Matlab-SDK allows you to call any NaoQi module method in Matlab script.Call syntax is the same as c++, java, python or .Net. All calls are made remotelyfrom the pc with Matlab to real or simulated robot.
On Microsoft Windows, Matlab allows you to use a .Net library from within an m file. To use this approach, please first follow the instructions for installing naoqi.net. Once installed, you can use the following approach in an matlab file.
I need to locate my MATLAB installation. I find out that I need to type matlabroot at the MATLAB command prompt. As I understand MATLAB command prompt means open cmd at the root where matlab is installed. I find such root: C:\my_app\app\mcr\v717\bin. But when I run matlabroot from this directory - get 'matlab' is not recognized as an internal or external command,operable program or batch file.
You refer to a directory C:\my_app\app\mcr\v717\bin. This directory is not typical of a MATLAB installation - instead, it's typical of where you might install an application that has been created with MATLAB Compiler.
In case you're not familiar with that, MATLAB Compiler is an add-on product for MATLAB, that allows you to create standalone applications from MATLAB code. These applications are distributed along with a MATLAB runtime (the MATLAB Compiler Runtime, or MCR, which is what you see in the directory path you have), and they run without you needing to have MATLAB installed.
Can you actually start MATLAB itself, either from the Windows command line with the command matlab, or from an icon? If so then, as others have suggested, when MATLAB starts it should have its own command line. If you type matlabroot into that command line it should give you the location of the MATLAB installation.
MATLAB Overview
MATLAB, a software environment and programming language for design and test engineers, extends the functionality of Keysight generators by enabling you to generate arbitrary and standard waveforms, automate tests, and configure, control, and analyze measurements from other instruments. MATLAB is now available directly from Keysight as option N6171A with the purchase of your Keysight signal generator, signal analyzers, PXI and AXI modular hardware, and other instruments. Visit www.keysight.com/find/matlab for details.
Download Assistant: Generate and download waveforms to your Keysight signal generator using included MATLAB functions
The Download Assistant software installs a series of MATLAB functions as MATLAB files into the directory that you choose during installation. This software enables you to download your custom I/Q data into the baseband generator of any vector signal generator and use a single MATLAB command to play it back. In addition, add markers to trigger events during the playback of your signal and adjust parameters such as sampling rate and filter type. There is no cost for Download Assistant. However, Download Assistant requires you to have MATLAB and its Instrument Control Toolbox which you order directly from Keysight as option N6171A when you purchase your instrument or directly from MathWorks if you already have purchased your instrument.
Waveform sequencing programmable - Create, download, and play waveform sequences using a series of SCPI commands from the MATLAB command line. An example M-file is provided to help you get started.
b1e95dc632