Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have heard that it is possible to make standalone programs using Matlab compiler.
It is good but I doubt that if someone can use the commands in the tool boxes and make a standalone program out of them otherwise one could make a program using optimization tool box and distribute it, then no body would pay for such a too box. Am I right? Is it possible to use the features available in tool boxes to make a standalone program in Matlab?
There are certain features in toolboxes which are not supported by MATLAB Compiler. These mainly include GUIs provided with the toolboxes, such as imtool, cftool, systemIdentification, pidTuner, etc... and things the Compiler itself, or code-generation tools such as MATLAB Coder. For an exhaustive list, see Support for MATLAB and Toolboxes on the MathWorks web site.
Note that for the end user to run the compiled MATLAB application, he first needs to install the MCR (MATLAB Component Runtime) on his machine. This is essentially a "headless" version of MATLAB which can only be called by the compiled application, and is freely distributable to end users by the person who has a license for MATLAB Compiler.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I've been given Matlab scripts by my teacher for a technical report, I don't know the language yet (haven't had time at all but I'll figure it out ASAP), however it doesn't matter as I only need to run the scripts I've been given and check the plots.
I have no idea why, but everyone told me that both software run almost the same identical language, and yet the scripts I've been given rarely seem to work.
This happened repeatedly with other exams, and I know it has to be something with Octave because all my friends could run the scripts just fine on MATLAB (basically I get errors and I cannot get the plots with some of the scripts).
Now, I've been using GNU/Linux distros for years and would never go back to Windows. I'm fully aware that MATLAB runs on Linux and my University even gives me a license. However, I don't see the point in using a proprietary software like MATLAB when Octave SUPPOSEDLY works the same. I'm no Richard Stallman and I do occasionally run some proprietary software like Nvidia drivers or the Steam Client, etc, but if I can avoid it I'll avoid it.
So the issue is: do I really have to run MATLAB or can I just not figure out what's going on with Octave?
I even installed and loaded the MATLAB equivalent library I'm supposed to use for usual engineering scripts. I think it was the Control System Toolbox.
Any help would be appreciated.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to develop a MATLAB application, but MATLAB's UI is not as flexible or as beautiful as some others, like XAML for WPF. Is it possible to use something else to develop UIs rather than what is provided by MATLAB?
You can use Matlab Compiler to compile your code to an executable and you can excute it anywhere you want, e.g. from an interface developed by XAML or WPF.
You can use Matlab Coder to generate C or C++ code that you can integrate with your application in your own development environment (e.g., Visual Studio).
The advantage of using the second method over the first is that the result will be native (you can compile to anything you want) and you will be able to modify the code and have one code base. The disadvantage is that you will have to deal with the computer generated code.
P.s. You might want to consider the relatively new Matlab App Designer as opposed to the old GUIDE. It is much better. That being said, it is not as good as XAML or WPF.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Im looking to figure out how to download libsvm for matlab, I hear it is much quicker than the support vector machine matlab functions already in place?
Please note, the reason I'm answering this is because the documentation is not detailed enough and I had trouble installing LibSVM on OS X on my first try. After much tinkering, this is the best procedure I have come up with so far.
Yes, it is much quicker and more accurate for nonlinear kernels. Performance wasn't significantly difference from my experience for linear kernels. I'm running OS X v10.10.2 Yosemite as well.
Here are the instructions to install LibSVM:
Download the zip from their website and extract it if Safari hasn't already.
Install Xcode so that LibSVM can compile MEX
Restart/open Matlab. You need to open Matlab again for it to detect Xcode.
Use "cd" command to navigate the working directory to "LIBSVM_FOLDER/libsvm-3.20/matlab/". If you type ls, you should see "make.m".
Type "make" to run the "make.m" script.
The .mexmaci64 and .mexw64 files for libsvmread/libsvmwrite/svmtrain/svmpredict will be created. svmtrain/svmpredict are your Matlab functions that you can call from your Matlab console to use libsvm.
For more information, please visit
http://www.csie.ntu.edu.tw/~cjlin/libsvm/
Caveats/Notes
Use the help command to see the function's help text
You can rename these files to your liking to rename the function name
I renamed and created a wrapper functions around svmtrain/svmpredict called libsvmclassify/libsvmtrain to remain consistent with Matlab nomenclature and input format
Make sure to have these files in your working directory or "addpath" to them
Don't forget to cite their paper when you use LibSVM for research
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I am planning to deploy a MATLAB application using the MATLAB compiler.
My plan is to compile the code using the toolbox, install the runtime in a web server, and create a website that calls this application and retrieve some results.
My question is regarding the licenses required:
I already know that MCR is royalty free for desktop applications. What about web aplications?
I do NOT need to buy "MATLAB Production Server", right?
obs: I already have MATLAB Compiler license
With regard to licensing, that's correct. The MCR can be redistributed and used royalty-free, and you don't need to buy MATLAB Production Server.
Technically, however, this is unlikely to be a good solution unless your web application is very small scale, and is OK to be very slow. Each time your web application needs to make a call to the MATLAB component, it will need to start up the MCR, which can take rather a long time. In addition, if you need to support multiple people using the web application simultaneously, multiple copies of the MCR will start up at once, and you may run out of memory fast.
You may like to consider using either one of the MATLAB Builder products, which enable you to integrate better with web applications, or MATLAB Production Server, which will enable you to scale better.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Essentially, I have an interesting Perl script that I want to put on Github / other places that I want to be re-distributable but I do not want anyone compiling it and then redistributing it (yes I know the source would be included with certain licenses - but I don't want it to ever be compiled at all).
Those who can figure out how to use CPAN, etc, to set it up - I want them to be able to use it and redistribute it in source format but is there a way of restricting the compilation and then redistribution. I only want to allow users to redistribute in source.
Your requirements are at odds with each other. The first step of running a Perl 5 program is compiling. Your best bet is the GPLv3, it requires anyone who distributes a compiled version to also provide a method to retrieve the source.
Most of the methods of making a binary out of a Perl 5 script (which I think you are confusing with compiling) aren't actually compiling. They are packaging. The source is still present in the binary and is compiled at run-time by an included copy of the perl binary.