Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Matlab Debugging in Kate?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Mon Nov 21, 2011 9:23 am    Post subject: Matlab Debugging in Kate? Reply with quote

Hi everybody,

I am really used to work with Kate editor for dealing with source codes (its quite simple and lightweight). However, I have been working with Matlab recently and I found out that having Matlab's editor normally is really handy, for the GUI debugging features. I am wondering if there is any plugin or extension for kate which allow me to do the same.
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
MetalGod
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 816
Location: Portugal

PostPosted: Fri Nov 25, 2011 10:20 am    Post subject: Reply with quote

I doubt you can do any debugging using Kate or any other editor. If you really want to use matlab try running matlab as a console only (without the IDE) and use the .m files you edit with kate or any other editor.

If you want to look for alternatives try http://code.google.com/p/spyderlib/ which is a scipy/python IDE similar to matlab and becoming very popular. Or you might want to use octave (matlab "clone") and http://qtoctave.wordpress.com/.

When i needed to use matlab i used with the full IDE which is very very powerful. Hope it helps 8)
_________________
ex: Gentoo Linux Developer: amd64 media-optical sound gnome
ex: Portuguese Moderator
------------------------------------------------------------------------------
God Doesn't Play Dice
Back to top
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Fri Nov 25, 2011 11:01 am    Post subject: Reply with quote

Well, I was hoping that there was a plugin such as this. Matlab support commands for debugging via command line, but I have no idea how to "pipe them in" from outside a matlab session.

I cannot use anything other than matlab, because I have to compare results with other ppl who are using matlab. Actually I personally wouldn't ever recommend using octave unless you just have no access to matlab.
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 164

PostPosted: Sat Nov 26, 2011 9:22 am    Post subject: Reply with quote

Holysword wrote:
Actually I personally wouldn't ever recommend using octave unless you just have no access to matlab.


May I ask why? Personally, I find it more pleasant to use. Are there correctness issues?
Back to top
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Sat Nov 26, 2011 12:24 pm    Post subject: Reply with quote

Many functions present in Matlab are either missing, buggy or have a worse quality (acuracy, round-off errors, computational time) in Octave. Plus the plot features and a cool GUI. You can search for comparisons between both with your favourite search engine.
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
MetalGod
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 816
Location: Portugal

PostPosted: Sun Nov 27, 2011 8:42 pm    Post subject: Reply with quote

Holysword wrote:
Many functions present in Matlab are either missing, buggy or have a worse quality (acuracy, round-off errors, computational time) in Octave. Plus the plot features and a cool GUI. You can search for comparisons between both with your favourite search engine.


true... but unfortunatly you have to use matlab for linux/unix
_________________
ex: Gentoo Linux Developer: amd64 media-optical sound gnome
ex: Portuguese Moderator
------------------------------------------------------------------------------
God Doesn't Play Dice
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10303
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Nov 27, 2011 9:21 pm    Post subject: Reply with quote

And, if you were using a Mac, the truly unfortunate thing would be that you would have to use Matlab for Mac OS?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 164

PostPosted: Mon Nov 28, 2011 1:12 pm    Post subject: Reply with quote

Holysword wrote:
Many functions present in Matlab are either missing, buggy or have a worse quality (acuracy, round-off errors, computational time) in Octave. Plus the plot features and a cool GUI. You can search for comparisons between both with your favourite search engine.


Oh, I don't need a comparison since I do use both. I was just worried that, since you recommend against octave, that you were aware of some serious issues. You did mention them, and I would be grateful if you would share any information you have. All I found was an Ubuntu forums post complaining about accuracy "issues" which were simple float rounding differences.

Correctness is all I'm interested in, the rest is a matter of taste. IMHO, the plotting interface is horrible and gnuplot beats it hands down (dlmwrite is your friend), shiny GUI gets in the way (linting features that you crave in kate are neat, but that's all), no shebang scripts, and inline functions in Matlab leak variables. While I admit some Matlab toolboxes are nice and octave-forge isn't all it could be, the language itself isn't, as I see it, useful beyond prototyping anyway. And octave is good enough for that, so I use it most of the time, and start Matlab only on occasion.
Back to top
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Sat Dec 03, 2011 9:35 pm    Post subject: Reply with quote

ExZombie wrote:
Oh, I don't need a comparison since I do use both. I was just worried that, since you recommend against octave, that you were aware of some serious issues. You did mention them, and I would be grateful if you would share any information you have. All I found was an Ubuntu forums post complaining about accuracy "issues" which were simple float rounding differences.

I've used Octave briefly in my master degree - we were developing a prototype for optimization problems. We wrote once a collection of routines for nonlinear constrained optimization based on BFGS (normally using barriers). Everything was written in Matlab, until one day someone suggested to "test it in Octave, since its nearly compatible". We changed the little issues in the code, and the result was sometimes the same, but sometimes you could clearly see the solution from octave deviating from the solution of matlab as the iterations goes by. Sometimes the deviation was small, sometimes it was huge. We decided to test to see what was the "best solution" and compared with some analytical solutions, and not surprisingly, matlab won. We didn't even bother to see where exactly the problem was happening, we just dropped octave and never tried again - maybe something changed nowadays. I would proudly share the code, but unfortunatelly I didn't keep it.

ExZombie wrote:
Correctness is all I'm interested in, the rest is a matter of taste. IMHO, the plotting interface is horrible and gnuplot beats it hands down (dlmwrite is your friend), shiny GUI gets in the way (linting features that you crave in kate are neat, but that's all), no shebang scripts, and inline functions in Matlab leak variables. While I admit some Matlab toolboxes are nice and octave-forge isn't all it could be, the language itself isn't, as I see it, useful beyond prototyping anyway. And octave is good enough for that, so I use it most of the time, and start Matlab only on occasion.

If the functionalities you use happen to have the same performance/accurracy, then its a matter of taste. Be happy.

MetalGod wrote:
true... but unfortunatly you have to use matlab for linux/unix

True indeed, but I am not sure if thats "unfortunately". I know that somehow even the same version of matlab may produce different approximations when running on different plataforms, but I am not sure if linux is being beaten by windows here. In fact I have a colleague who was having problems with windows implementation of ilu decomposition, but not in linux (perhaps a very particular case, but well...)
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum