Skip to main content
1-Visitor
November 9, 2017
Solved

polyfit not plotting, all arrays verified

  • November 9, 2017
  • 2 replies
  • 4380 views

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.

Best answer by Fred_Kohlhepp

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

 

But polyfit works.  You can see coefficients with polyfitc

2 replies

24-Ruby IV
November 9, 2017

May be this help you

psi-tt.png

dmaynard1-VisitorAuthor
1-Visitor
November 9, 2017

Sorry, look at page 12 for the error location.

24-Ruby IV
November 9, 2017

@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...

23-Emerald I
November 10, 2017

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

 

But polyfit works.  You can see coefficients with polyfitc

dmaynard1-VisitorAuthor
1-Visitor
November 10, 2017

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

dmaynard1-VisitorAuthor
1-Visitor
November 10, 2017

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