Argh! Jordi is right. This isn't what it looked like when I sent it.
I apologize for the formatting.
Maybe someone can start a new campaign:
"I'm a mac." "and I'm a PC." "And I'm a Linux box." On Apr 17, 2008, at 4:52 PM, A. Scottedward Hodel wrote: Octave uses m-files in the same way that MATLAB does, except without the built-in editor (most of us already have a preferred text editor). Provided that your m-file doesn't use any MATLAB functions/toolboxes that are not (yet) developed for Octave, you should be able to call it from the octave prompt.
In my own X-terminal: I use the m-files tf.m and bode.m (already part of Octave):
Hodel-MacBook:~ hodelas$ octave GNU Octave, version 3.0.0Copyright (C) 2007 John W. Eaton and others.This is free software; see the source code for copying conditions.There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY orFITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'. Octave was configured for "i386-apple-darwin8.11.1". Additional information about Octave is available at http://www.octave.org. Please contribute if you find this software useful.For more information, visit http://www.octave.org/help-wanted.htmlReport bugs to < address@hidden> (but first, please read http://www.octave.org/bugs.html to learn how to write a helpful report). For information about changes from previous versions, type `news'. octave:1> sys = tf([1 2 3], [43 5 6]);
octave:2> bode(sys)octave:3> On Apr 17, 2008, at 4:43 PM, Bruggemann, Jeremy J. (WSTF-RF) wrote: Thank you for responding. I am referring specifically to m-files. Right know I am using the "x" interface. Is there a particular command I can use to call on an m-file? Jeremy Bruggemann NASA JSC WSTF Bldg. 200; Rm. 128 12600 NASA Road Las Cruces, NM 88004 Office Phone: (575)524-5657 Cell Phone: (575)650-4004 Do you mean m-files (should be "mostly" straightforward), C-language mex files (there is a Mex interface with Octave, but a bit more work involved in porting), or compiled S-functions in simulink (not easy at all, if I recall correctly). On Apr 17, 2008, at 3:29 PM, Bruggemann, Jeremy J. (WSTF-RF) wrote: Is there a way to import code into Octave from an already written Matlab program?
Jeremy Bruggemann NASA JSC WSTF Bldg. 200; Rm. 128 12600 NASA Road Las Cruces, NM 88004 Office Phone: (575)524-5657 Cell Phone: (575)650-4004 _______________________________________________ Help-octave mailing list
_______________________________________________ Help-octave mailing list
|