MATLAB: How to get function expression for Cumulative distribution function fit curvefunction expression I have a cumulative distribution function(cdf). I have attached the figure. How can I fit the curve and get the function expression for it? Best Answer Likely the easiest way to estimate the parameters is with the Statistics and Machine Learning Toolbox fitdist function: x = randn(1, 25)*2 + 5; % Create Data (Mean = 5, St Dev = 2)b = fitdist(x(:), 'normal')producing: b = NormalDistribution Normal distribution mu = 5.30768 [4.42359, 6.19177] sigma = 2.1418 [1.67238, 2.97957]Choose the appropriate distribution function for your data. Related SolutionsMATLAB: How to fit gaussian model and plot it You can do the following:1) Estimate the mean and standard deviation using normfit2) Calculate the probability estimates using normpdf3) Plot the data and the estimates using plotExample:[m,s] = normfit(x);y = normpdf(x,m,s);plot(x,y,'.'); MATLAB: How to plot a probability distribution object Use the pdf function:pd = makedist('Normal','mu',75,'sigma',10);x = 25:125;y = pdf(pd, x);figureplot(x,y)grid Related QuestionNeed help plotting confidence intervalsNot plotting all the values in a single graphPlotting standard normal rvs
Best Answer