help-octave
[Top][All Lists]
Advanced

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

Matlab compatibility: quad (Was: Re: lsim problem)


From: Gerrit
Subject: Matlab compatibility: quad (Was: Re: lsim problem)
Date: Thu, 21 Oct 2004 10:20:05 +0200
User-agent: Mutt/1.4.1i

Gerrit Holl schreef:
> Geraint Paul Bevan schreef:
> > You have defined t, and hence u, as a single row instead of a single
> > column. If you transpose t and u (using the ' operator), it should work.
> > 
> > Also, if you use a recent version of Octave, you should find that tf()
> > works without altering the code to use tf2sys instead.
> 
> Thanks for your help (thanks also to Ada). It works now.
> I will also look into a newer version tomorrow, apparantly it isn't in my yum
> repository but that doesn't matter. Maybe my quad problem (no 6th
> argument, as opposed to matlab's version) can be solved too then ;-).

I tried to compile Octave from latest CVS, but it exits with an error:

lex.l: In function `int is_keyword_token(const std::string&)':
lex.l:1216: error: ISO C++ forbids declaration of `octave_kw' with no type
lex.l:1216: error: uninitialized const `octave_kw'
lex.l:1216: error: syntax error before `*' token

(with many 'undeclared' errors afterwards)

Because of this, I tried to use Octave 2.1.50, which was already
installed on my system. I have a Matlab compatibility issue though.
In Matlab, 'quad' takes a 6th argument. This argument is used to pass
additional arguments to the function to be integrated. Octave doesn't
have this argument. Is there a clean and simple workaround? I tried to
define many different functions in a loop, but according to my teacher,
my results are wrong, and suspect this is the cause. Simple is better
than complex, and my workaround was rather complex. Is there a better
one?

What I'm trying to do is do determine the first 20 real Fourier
coefficients for the Fourier Series. I know Octave has Fourier
transform functions, but googling didn't yield real Fourier
coefficients. Any hints?

yours,
Gerrit.

-- 
Ervaringen met het Syndroom van Asperger:
        http://topjaklont.student.utwente.nl
Socialistische Partij:
        http://www.sp.nl/



-------------------------------------------------------------
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]