Predicting a polynomial curve
显示 更早的评论
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
回答(1 个)
John D'Errico
2017-3-13
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!