help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compatability- lsim() suggestions?


From: A S Hodel
Subject: Re: compatability- lsim() suggestions?
Date: Sun, 9 Mar 2003 09:45:53 -0600

One possibility is to put in a line like:

if( exist('ss2sys') )
  % octave code here
elseif exist('ss'))
  % matlab code here
else
  error('uh-oh!')
end

I guess that's his option (a).

On Sunday, March 9, 2003, at 12:32 PM, Raymond Rogers wrote:
The interface is a bit different.
You could:
 (a) write code which does a runtime check and calls
  either ss or ss2sys,
 (b) write an install script that converts from ss2sys to
  sys when installing in matlab  (or vice versa),
 (c) write ss for octave and add it to octave or
   octave-forge, or
 (d) write ss2sys for matlab and install it if needed.


Thanks, although I feel like I am back in some elections where I have to pick the lesser of evils.
b) Is out; I see nothing but trouble
a) is fine; except I don't know how to do it. Maybe after I recieve the GNU Octave book. c) Is fine and benenficial; but I incur a maintenence responsibility (and expose my coding for all to see). I am reminded of Knuth's comments where he spent 1-2 years on a OS project, somebody asked him to describe the result, he was so embarassed he took twice as long to clean it up for presentation (as I recall). d) Well... I would rather build up Octave, but it would build up compatability. If anyone ever knew about it.

I will cheat for a while, and wait for the book.

Ray

Ray



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]