I would like to get a package written for MATLAB to run in Octave but have been informed by the package author ( see github page here ) that Octave doe not recognize the package's MATLAB syntax. Is there any hack I can implement to force Octave to see and be able to use the package?
I wrote to the maintainer of the Optunity package about this problem and he very quickly pushed out an Octave wrapper for the package. Everything seems to be working fine now :-)
Related
I code in Matlab/octave very often. While having several good features it lacks a good editor.
My question is that is there any other good editor for it. My preference is intellij Idea, which is one the best IDEs I've ever tried. In this regard, can I connect octave or matlab to intellij (e.g. via some plugins)?
I've implemented Matlab plugin for IntelliJ:
https://github.com/kornilova-l/matlab-IntelliJ-plugin
It has syntax highlighting, resolve, rename and autocompletion.
I continue development so submit an issue on GitHub if you miss some feature or you found a bug
For octave support, you could use the textmate bundle support.
Install the Textmate Bundle Support plugin first and then follow the instructions here on how to add any textmate bundle.
https://www.jetbrains.com/help/pycharm/using-textmate-bundles.html
This here is a matlab/octave bundle that you could then use.
https://github.com/textmate/matlab.tmbundle
for Octave
https://github.com/tomconder/octaveplugin
https://github.com/demongoo/idea-octave-plugin
https://github.com/idkravitz/octave-idea-plugin
UPDATE:
thanks #GameOfThrows
I confused Wolframs Mathematica with Matlab. Look like at the moment there is no MatLab plugin for IntelliJ
this is for Mathematica:
https://plugins.jetbrains.com/plugin/7232-mathematica-support
The toolbox packaging functionality new in R2014b looks pretty nice.
However, you seem to be able to package a toolbox only via the toolbox-packaging GUI.
I'd like to be able to create a .prj file interactively using the GUI, and then programmatically package the toolbox using this .prj file, incorporating this programmatic step into a wider build process (which also includes checking things out, running a unit-test suite etc).
Does anyone know of a way to do this (documented or not, supported or not)?
I took a look at MATLAB\R2014b\toolbox\matlab\toolbox_packaging\+matlab\+tbxpkg\+internal\create.m - this seems to mostly do the job, but it requires that the .prj file is in a specific location relative to the toolbox folder.
I was hoping for something similar to the app-building classes such as matlab.apputil.
As of R2016a there is new functionality to programmatically package a toolbox.
I was following a tutorial in matlab documentation at http://www.mathworks.com/help/vision/examples/automatically-detect-and-recognize-text-in-natural-images.html
There they use a function helperGrowEdges but I it is not being recognized right now. I verified that I have Computer Vision System Toolbox. I am unable to figure how to implement it. It says it 'Grow the edges outward by using image gradients around edge locations', but I am unable to figure out how to implement is well.
As hinted out by Naveh, It works those functions are present only in MATLAB 2014 version and not in older versions.
Older versions do not have that example as well when I try to open edit TextDetectionExample
This example first appears in release R2014a. helperGrowEdges is a helper function, which goes with the example. Unfortunately it does not get published in the documentation. The only way for you to see it is to get access to an installation of MATLAB R2014a with the Computer Vision System Toolbox, and do edit helperGrowEdges.
I wanted to use opencv library in a mex function but it just kept telling me that opencv functions had not been declared. So I searched a bit and found out I should link them somehow but I couldn't figure out how.
Can anybody help me with that?
I'm using opencv2.4.2 and matlab 2012 on a 64-bit ubuntu11.10
Ok so i could't exactly solve the problem but I found this project which had done it and I just edited its functions and it worked fine.
I'm learning the MATLAB language and would like to have some kind of free environment to experiment with. The MATLAB environment provided by MathWorks is commercial. There appears to be a trial available, but I can't figure out how to get the trial license.
For the moment, all I need is a command-line and the "standard libraries".
Octave is mostly compatible with matlab: http://www.gnu.org/software/octave/
If you are just starting with MATLAB I would strongly suggest to go the Python path instead (unless there is some very specific reason why you must use MATLAB). The basics (like array / matrix operations) are very similar to MATLAB.
In my current area of work (neuroscience) there is a strong migration from MATLAB to Python. Many groups are making the switch because Python is free and generally more powerful.
The basic packages you will probably need to get started would be numpy (basic array numerics), scipy (more algorithms) and matplotlib (plotting). Since you want to work on the command line I suggest IPython as well.
As already mentioned in another answer there are also some Python distributions which include many packages, like PythonXY, the Enthought Python Distribution, or Anaconda.
There are many tutorials available on the web, search a little and pick one you like.
Look into these:
Scilab
Octave
Sage
Read this blog entry from Ryan Morlok for more info on open source Matlab alternatives.
I'm a big fan of R, but it's not a substitute for Matlab... it's an alternative. There's a big difference!
I was recently enamoured of Python XY. It's not exactly like Matlab but it has many of the same functions and copies the look and feel. I would personally use it if I didn't want to buy a Matlab license though - not if I wanted to practice with a Matlab stand-in.
www.pythonxy.com
Other users have given you the examples that I would have suggested - Octave and Scilab. Of the two, I would say that Scilab is more powerful BUT Octave tries really hard to be source compatible with standard MATLAB and Scilab does not.
So, if your aim is to experiment with a MATLAB like language and learn skills that you will eventually be able to transfer over to MATLAB then I suggest that you stick with Octave.
If you're interested in trying things out in MATLAB directly, there was a recent blog entry on The MathWorks website regarding free trial downloads of MATLAB and its various toolboxes. If you haven't tried contacting them already, the blog links to this page where you can request product trials or, if you already have a licensed product, you can sign in and downloads trials of toolboxes.