Has anyone done much programming in Matlab (more specifically Octave, but they should be more or less identical)
how the hell do you declare multiple functions in the same file!
function f () g () end
function g () h () end
function h () nargin == 1 || error ("nargin != 1"); end
Put this in a file named f.m It compiles f, but then sees g as unknown. you can’t put g in front of f because then it isn’t named properly for the file, and if you put the end for function f at the end of the entire file (as I thought you were supposed) octave spits back an error saying you can’t declare a function inside a function (kind of makes sense). I can’t even find a good example program with two functions in one file. All of the Octave builtin examples contain one function per file! (at least all the ones I looked at.)
grrr, I want to go back to IDL.
little help?



11” MacBook Air 1.6GHz dual-core Intel Core i5: $829.00 Delivered
Samsung S22B300B 21.5” LED Backlit LCD Monitor: $129.99 Delivered
Canon imageCLASS Monochrome Multifunction Laser Printer: $129.99 Delivered
