Predicting a polynomial curve
Show older comments
Hello, I am trying to plot efficiency curve for a project I'm working on with a resolution of 1mA and 1V. Right now I'm plotting efficiency vs output voltage at a certain output current. But the output range is from 300mA to 1000mA and output voltage also has a large window which makes it impossible to test efficiency at every point. Although I do have efficiency data at every 100mA and 5V. I was wondering if I could fill the data in between with some kind of prediction.
Is there any tool in MATLAB which will help do that? I've seen regression learner app but wanted a little guidance if that is the right path or not.
Thanks, Rohan
Answers (1)
John D'Errico
on 13 Mar 2017
0 votes
Don't use a polynomial. If someone tells you to use a polynomial, don't do it.
Use a spline. An interpolating spline is probably best, so just use interp1.
If the data is somewhat noisy then you can use a smoothing spline. spaps is an option, which is I think now part of the curve fitting toolbox.
You can also use my SLM toolbox, from the file exchange, which will give you more capability, though requiring slightly more thought on your part. It would also require the optimization toolbox.
Categories
Find more on Get Started with Curve Fitting Toolbox 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!