> The function will not work if there is many impulsion (maximum) in the
> vector imput.
>
> To be honest, I didn't know that cosinus had a fwhm. I just code that
> function for my own use and share it. I will not improve this to work on
> every mathematical function it already exist.
Well, it is necessary to test a (contributed) code into all possible inputs
users can supply. I've noticed that your code does neither work for
continuous and monotonous functions.
The enclosed script fwhm.m is rewritten from scratch (I was also using
such a function earlier).
- It works on both vectorial and matricial input.
- It returns -1 if FWHM does not exist.
- It was tested against various inputs.
- It works on both Octave and Matlab.
- It includes test case for Octave.
Please test it and commit to Octave if it is found OK (with whatever
comments in the file header).
---
Petr Mikulik
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at:
http://p.sf.net/sfu/Challenge_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev