Results 1 to 9 of 9

Thread: Good text editor for matlab programming with Octave

  1. #1
    Join Date
    Jun 2006
    Location
    Europe
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Good text editor for matlab programming with Octave

    Does anyone know of a good text editor for matlab programming?

    I am currently using gedit for the purpose, but I am missing some handy functions like line numbering and subsequent lines getting the same indent as current upon hitting return (a function I have when using Octave with Textpad in Windows).

    Also, gedit's color coding in .m files does not appear to be 100% good.

    I am sure emacs is bound to come up as a suggestion, but for a beginner like me, it seems much too advanced

  2. #2
    Join Date
    Dec 2009
    Beans
    43
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Good text editor for matlab programming with Octave

    You can set up all that (but maybe not a better highlighting) in gedit preferences.
    Also check the gedit-plugins package. You will be able to activate them in
    Preferences->plugins.
    Another good editor is Kate (although I haven't tried Matlab code), if you don't mind installing some kde libraries if you're running Gnome.

  3. #3
    Join Date
    Dec 2009
    Beans
    43
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Good text editor for matlab programming with Octave

    Here is a Matlab-syntax-highlighting-defintion-addon for Kate:

    http://search.cpan.org/~szabgab/Synt...Kate/Matlab.pm

    Edit: for gedit, check the following links; the threads are worth reading completely.
    http://blogs.ethz.ch/ubuntu/2007/06/05/matlab-part-2/
    http://ubuntuforums.org/showthread.php?t=368353
    https://bugs.launchpad.net/ubuntu/+s...w2/+bug/418199
    Be sure to read comment 8:
    https://bugzilla.gnome.org/show_bug.cgi?id=170604
    Last edited by radioboy; October 9th, 2010 at 01:29 AM.

  4. #4
    Join Date
    Jun 2006
    Location
    Europe
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Good text editor for matlab programming with Octave

    Thank you very much! I ended up on the gedit solution.

    The link http://ubuntuforums.org/showthread.php?t=368353 was very useful.

    Other than that, the solution to most of my questions were no worse than actually looking in gedit's user preferences (guess I should have done that first, sorry).

    Lots of useful goodies in the plugin package though. Too bad the embedded terminal does not run Octave automatically Otherwise quite ingenious
    Last edited by vacco; October 9th, 2010 at 02:43 AM.

  5. #5
    Join Date
    Oct 2005
    Location
    Albany, NY
    Beans
    842
    Distro
    Ubuntu

    Re: Good text editor for matlab programming with Octave

    Linux is full of text editors. If programming/text editing is something you will be doing a lot, learning one (or both) of the biggies will be useful. EMACS and Vim. Yes, the learning curve is worth it IF you do enough editing. If this is for a freshman EE class and you have to write some stuff in Matlab and you don't really intend to do much more than that -- skip 'em. They only become useful if you A) use them often and B) use them for nearly everything.

    Whatever you do, choose a general purpose text editor. Gedit is actually a pretty nice tool. It is very multi-purpose and can handle syntax highlighting for a large number of languages. Don't waste your time learning a fancy tool that really only works well with one or two languages, unless someone pays you to.

    Other alternatives:

    Geany
    Netbeans, via a plugin. (This is an IDE, not a text editor.)
    QTOctave (Only useful for Matlab/Octave programming)

    Monkey Analytics (Not OSS, but awfully interesting)
    Please Insert Funny Statement Here.

  6. #6
    Join Date
    Apr 2008
    Location
    Australia
    Beans
    237
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Good text editor for matlab programming with Octave

    Quote Originally Posted by vacco View Post
    I am sure emacs is bound to come up as a suggestion, but for a beginner like me, it seems much too advanced
    Nah, don't worry. It's not too advanced, and certainly if you're a beginner the earlier you pick it up the better it will be in the long run.

    If you're interested, I can send you a rather in-depth Emacs cheat-sheet I wrote for a workshop I did. While it doesn't cover Octave (though there iss really nice Octave integration in Emacs), it does cover a lot which I couldn't find in other cheat-sheets.

    Really, just go through the tutorial once, it'll take maybe 20 minutes. You'll be fine, it's not too difficult to pick up. It will become really natural after a while (a week of use I would estimate), it can seem a bit overwhelming at first, but there are lots of places you can ask questions if you ever get stuck.

    There's the old saying "learn one editor, and learn it well". If you ever find yourself programming, writing LaTeX documents or customising your GNU/Linux system, it can all be done consistently in the one editor.

  7. #7
    Join Date
    Apr 2013
    Beans
    1

    Re: Good text editor for matlab programming with Octave

    Quote Originally Posted by matthew.ball View Post
    Nah, don't worry. It's not too advanced, and certainly if you're a beginner the earlier you pick it up the better it will be in the long run.

    If you're interested, I can send you a rather in-depth Emacs cheat-sheet I wrote for a workshop I did. While it doesn't cover Octave (though there iss really nice Octave integration in Emacs), it does cover a lot which I couldn't find in other cheat-sheets.

    Really, just go through the tutorial once, it'll take maybe 20 minutes. You'll be fine, it's not too difficult to pick up. It will become really natural after a while (a week of use I would estimate), it can seem a bit overwhelming at first, but there are lots of places you can ask questions if you ever get stuck.

    There's the old saying "learn one editor, and learn it well". If you ever find yourself programming, writing LaTeX documents or customising your GNU/Linux system, it can all be done consistently in the one editor.
    Could you send the sheet to me ? i send my mailbox to you in private message, thx~

  8. #8
    Join Date
    Jan 2007
    Location
    Valencia, Spain
    Beans
    19
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Good text editor for matlab programming with Octave

    There is another alternative, it is SublimeText with SublimeREPL plugin. With the plugin you can execute Octave from SublimeText.
    And another one is Cantor, a kde program. You can install it from Ubuntu repos.

  9. #9
    Join Date
    Sep 2007
    Location
    TX, USA
    Beans
    385
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Good text editor for matlab programming with Octave

    Octave 3.8 now comes with a native GUI, and an editor. It's very similar to the Qt version.

    My personal favorite is still Geany. Although I am tempted now to use the native editor in Octave for debugging.
    This should be a sticky, or a bug 'cos it ain't a feature

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •