help-octave
[Top][All Lists]
Advanced

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

Re: how to use


From: mgola
Subject: Re: how to use
Date: Wed, 16 Sep 2015 14:32:31 +0200

I just want to run script :) and I dont know how to do it.

Od: "Doug Stewart" <address@hidden>
Do: "Mar G" <address@hidden>;
Wysłane: 11:59 Środa 2015-09-16
Temat: Re: how to use



On Wed, Sep 16, 2015 at 3:53 AM, <address@hidden> wrote:

Hi

what do you mean "normrnd" ?.

I would like from this script: list (P) containing peak number and position, height, width, area, and start and stop position of each peak, assuming a Gaussian peak shape


in octave type 

help normrnd

it will explain what normrnd is


 


Od: "Doug Stewart" <address@hidden>
Do: address@hidden;
Wysłane: 16:43 Wtorek 2015-09-15


Temat: Re: how to use


On Tue, Sep 15, 2015 at 10:08 AM, <address@hidden> wrote:

I know that Gaussian take's only 2 parameters but in script (attachment) they use 3. I would like to run this script.



That gaussian is not the same as octave's gaussian
That one seems to create some data ours
" Return a Gaussian convolution window of length M"


would normrnd  do what you want?




Od: "Doug Stewart" <address@hidden>
Do: address@hidden;
Wysłane: 15:59 Wtorek 2015-09-15


Temat: Re: how to use


On Tue, Sep 15, 2015 at 9:41 AM, <address@hidden> wrote:

I would like to run this example:

x=1:.2:100;

y=gaussian(x,20,10)+gaussian(x,50,10)+gaussian(x,80,10)+.1.*randn(size(x));


Did you try 
help gaussian?
It says it only take 2 parameters, so that is why I asked "what are you trying to do?"
You must want some other function and I don't know what you are trying to do, so I can't help you.


 

findpeaksGSS(x,y,0.0004,0.3,17,21,3)



Od: "Doug Stewart" <address@hidden>
Do: address@hidden;
Wysłane: 15:37 Wtorek 2015-09-15
Temat: Re: how to use

What do you want to do?

On Tue, Sep 15, 2015 at 8:19 AM, <address@hidden> wrote:

Hi,

how to use this function:

y=gaussian(x,20,10)+gaussian(x,50,10)+gaussian(x,80,10)+.1.*randn(size(x));


I have an error:

error: Invalid call to gaussian.  Correct usage is:

 -- Function File:  gaussian (M)
 -- Function File:  gaussian (M, A)


best regards,

Mar
_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



--
DAS







--
DAS







--
DAS







--
DAS




Attachment: findpeaksGSS.m
Description: Text document


reply via email to

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