MATLAB >> fitdist question

by Shaun Hurley » Fri, 21 Jan 2011 21:51:05 GMT

Hello All,

I have a question about the fitdist function. I have data along with the number of occurrences, but am confused as to how to use that with the function. My code looks something like this:

data = [50x2 matrix]
X = data(:,1);
freq = data(:,2);
L = length(X);
cens = linspace(0,0,L)';
fit = fitdist(X,cens,freq,'weibull')

I can't seem to get it to work, any suggestions? Thanks in advance.

MATLAB >> fitdist question

by Peter Perkins » Sat, 22 Jan 2011 00:10:35 GMT

Shaun, is this the FITDIST function in the Statistics Toolbox? If it
is, that's not the correct way to call it. I think you want something like

fit = fitdist(X,'weibull','frequency',freq)

Hope this helps.

MATLAB >> fitdist question

by Shaun Hurley » Sat, 22 Jan 2011 04:47:04 GMT

Worked perfect, thank you so much!

Similar Threads

1. fitdist question - MATLAB

2. fitdist Function

Hi all,

Does anybody knows if the function "fitdist" is available for matlab version  7.3.0? 
When I call for this function it says:

      " Undefined function or method 'fitdist' .... "

3. Optimization question- a very simple question - MATLAB

4. Two questions question on Neural network Toolbox:

I have started to use "nctool" in neural network tool box (Version 6.0.1). 
I can load the provided file "Simple Clusters"  and can train my network.  
Next, I have following two questions:

1-How to save the SOM Topolgy (generated by plotsomtop comand) and along with other generated figures ? I want to save them as .eps files to use with latex. I have done a lot of web search to find how to do this task but not successful so far. 

2-In the last step I can save my network and other things, but don't know how to use them properly. For example I can generate Simulink diagram. The Input box has two fixed values. Is it possible to to make them time varying ?

Thank you very much for your help.
Best regards.

5. a question about fft in matlab

6. Question about IIR-filters in MATLAB (initial/final conditions)


When using the function [y,s]=filter(b,a,x,s) in MATLAB
and b=1 and a=[0.5 0.5] we have a filter with infinite impulse
response. Why does MATLAB operate with the convention
that the length of the transient s is max(length(b),length(a))-1 ?
Is there something magical about this ? In theory the
response is infinite, so the length of the transient could also
be 10, 20 or 100 or something else....

What's the explanation for this choice?

Thanks in advance...

7. my first questions about CIC filter input datatype limit in Matlab

8. question about design fir filter with matlab

hi all,

i need to design fir filter to eliminate frequency component;
 my signal banwith B=10kHZ, samples Fs=20kHz

signal is corrupted by four sinusoids with frequncies:
F1=10kHz F2=8889Hz F3=7778Hz  F4=6667Hz

i found H(z)( H(z)=(z-0.5)*(z-0.3889)*(z-0.4445)*(z-0.3334)) but i don
know how can i show in the matlab... pls help me