Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

04-02-2014 01:01 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi all,

I have a set of points and am fitting a second degree polynomial in it using General Polynomial fit.vi, Regression Equation String.vi and Eval y=f(x) Optimal Step. vi as given in the example Regression Solver.vi.

Now, my problem is, I want all the points on the curve given the equation of the curve. By all points, I mean with all the pixels, similar to the VI 'GetPointsOnLine' which gives all the points on a line given its endpoints. Please help me.

Please see the regression solver example in C:\National Instruments\LabVIEW 2013\examples\Mathematics\Fitting\Regression Solver.vi

Thank you

04-02-2014 01:42 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

You really need to define your X values. Once you have those, then you just plug those values into your formula and you should have your Y values.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions

Unofficial Forum Rules and Guidelines

"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5

04-02-2014 04:09 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Crea an x-ramp corresponding to your pixels and use polynomial evaluation to calculate the curve based on the polynomial coefficients.