Get Help

Turn on suggestions

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

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- polyfit not plotting, all arrays verified

Options

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

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

Showing results for

11-09-2017
01:24 PM

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

11-09-2017
01:24 PM

polyfit not plotting, all arrays verified

I am trying to get a polyfit curve from attached excel data, page 12. Data points read in fine and plot. I am getting a plotting error when I try to graph the polyfit function. Using Mathcad Prime 3.1. My goal is to generate an equation that approximates the data points for use in control scheme. I will need to display the coefficients as well. Thank you in advance for your assistance.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

11-10-2017
02:30 PM

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

11-10-2017
02:30 PM

I had to fake your time data, couldn't figure out what [@normal] meant.

But polyfit works. You can see coefficients with polyfitc

8 REPLIES 8

11-09-2017
02:06 PM

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

11-09-2017
02:06 PM

May be this help you

11-09-2017
02:22 PM

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

11-09-2017
02:22 PM

Sorry, look at page 12 for the error location.

11-09-2017
02:26 PM

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

11-09-2017
02:26 PM

@dmaynard wrote:

Sorry, look at page 12 for the error location.

Sorry but I see only 11 pages!

And I think you not correct plot two vectors and one function. See please my picture!

Sorry - I go to bet...

11-09-2017
02:31 PM

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

11-09-2017
02:31 PM

I corrected the upload.

11-09-2017
02:32 PM

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

11-09-2017
02:32 PM

That particular plot I will be using piecewise functions later on for comparison. Not worried about it right now.

11-10-2017
02:30 PM

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

11-10-2017
02:30 PM

I had to fake your time data, couldn't figure out what [@normal] meant.

But polyfit works. You can see coefficients with polyfitc

11-10-2017
03:21 PM

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

11-10-2017
03:21 PM

I am trying to replicate your plot but I am still unable. Plot is still failing and I do not understand why.

11-10-2017
03:23 PM

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

11-10-2017
03:23 PM

Nevermind, I figured it out. I had to create second array for polyfit plot points. Thank you. I appreciate all the help.