gusl: (Default)
[personal profile] gusl
Why does Matlab insist on every function having its own file? Octave lets you define functions inside scripts, or in the shell. Therefore, my Octave code simply does not work in Matlab, due to this prissiness. I'm tempted to write an Octave->Matlab converter.

I just wish Octave caught up faster.

(this is an imperfect translation: "frescura" is much more common in my Portuguese than "prissiness" in my English, so the translation sounds a little odd. Here's an odd translation: "What prissiness, my brother! Eat soon the thing. You won't die.")

(no subject)

Date: 2008-09-14 02:36 am (UTC)
From: [identity profile] afanesvoltaje.livejournal.com
Functions can have their own internally defined subfunctions - it's just scripts that can't (unfortunately - I'd like them to be able to).

(no subject)

Date: 2008-09-14 02:40 am (UTC)
From: [identity profile] gustavolacerda.livejournal.com
Thanks. If I define function g inside function f, whose file is f.m, can I access g from the shell?

(no subject)

Date: 2008-09-14 03:07 am (UTC)
From: [identity profile] afanesvoltaje.livejournal.com
Nope. It's only defined from within the function its appended to. This is in many ways very nice - allows you to have lots of limited use functions that don't clutter up your overall list of functions and risk getting accidentally called some other time.

I just wish you could do the same for scripts...!

(no subject)

Date: 2008-09-14 03:36 am (UTC)
From: [identity profile] gustavolacerda.livejournal.com
This sucks. I want to be able to:
* see all the code in one page, and
* test all functions from the shell

One can't have both ways, unless one has:
* decent multifile editing (separate file for each function), or
* access to multiple functions from the same file (multiple functions in the same file)

(no subject)

Date: 2008-09-14 04:50 am (UTC)
From: [identity profile] en-ki.livejournal.com
because "modules" and "files" are TOTALLY THE SAME INSEPARABLE CONCEPT AND IT IS 1958 AGAIN SOMEBODY CALL GRACE MURRAY FUCKING HOPPER BECAUSE WE NEED US SOME COBOL naptime.

(no subject)

Date: 2008-09-14 03:55 am (UTC)
From: [identity profile] cdtwigg.livejournal.com
Whoa, worlds collide.

(no subject)

Date: 2008-09-14 05:22 pm (UTC)
From: [identity profile] afanesvoltaje.livejournal.com
ha

they collided in LA last summer; this is just fallout

(no subject)

Date: 2008-09-14 04:49 am (UTC)
From: [identity profile] demarko (from livejournal.com)
I can only think of the equivalent in slang Peruvian Spanish, which would be pitucada

February 2020

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags