Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9135493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:49:53+00:00 2026-06-17T08:49:53+00:00

When using the basic fitting tool, one has the opportunity once the fitting done

  • 0

When using the “basic fitting” tool, one has the opportunity once the “fitting” done to evaluate/estimate a value at certain points. I was only able to reproduce this until the plotting part. I cannot figure out how to reproduce the “Evaluate” function programmatically so that I can estimate the value of certain points and use them in my code. The only way I can achieve this for now, is through the GUI i.e from the Figure window’s main menu: “tools >> basic fitting”

screenshot

I am not sure I am making myself clear enough, but please do not hesitate to ask if you need more information.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:49:54+00:00Added an answer on June 17, 2026 at 8:49 am

    The answer to your question depends on the specific type of model you are fitting. It is not clear from your question if you are just interested in polynomial fitting or something more complicated. For polynomials you can use the polyfit function to get the coefficients and the polyval function to evaluate at certain points.

    %construct a test signal
    x = linspace(0,1,100)';
    signal = 5*x.^2 + x + 0.5;
    noise = 0.1*rand(100,1);
    y = signal + noise;
    
    %Plot function
    plot(x,[signal,y]);
    
    %Polynomial fitting
    n = 2; % order of polynomial
    coeff = polyfit(x,y,n) % I get 5.0295, 0.9786, 0.5512
    
    %Evaluate at a certain set of points
    x1 = 2.3;
    polyval(coeff,x1)
    

    If you are fitting a more complicated model, then you will have to use cfit to do the fitting which will give you a fit object. You have to pass that fit object to the function feval to evaluate the function at a specific point. Check out the documentation for these functions to learn more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Its just a basic question. I am fitting lines to scatter points using polyfit
We typically only reference Microsoft.Practices.Unity.dll in our applications. We're only using basic capabilities, and
We are using htaccess basic authentication on one of our sites. One of our
I am using basic authentication for my web api which has been hosted on
I am developing a relatively simple .NET class library mainly using basic value and
I have a friend who has completed making a website game using BASIC/ASP. We're
Using Basic Authentication, and the asp.net Web-Api, where JSON Get/Post's to my API, I
Hi I am using basic authentication method for protecting some pages in my Webapp.
I am using basic code to highlight the text within a text field when
I have a self-hosted WCF app using Basic HTTP Binding, no SSL, running in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.