Here is the entire code. Trying to fit the data into a piecewise exponential fucntion and testing the maximum likelihood. Where is the mistake. Could not figure it out. Help please..
Show older comments
The entire code is attached. Please check it out. I spent hours trying to figure the source of the mistake but could not get around it.
Accepted Answer
More Answers (1)
Walter Roberson
on 1 Jan 2018
You have
[mldln,conf1] = mle(xdata,'pdf',@pdfdln,'start',[mu,sig],'upperbound',[5,5], 'lowerbound',[0.1,0.1],'options',options);
but pdfdln is not a function you define, and is not a Mathworks supplied function or any function I can find anywhere on the Internet.
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!