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

  • SEARCH
  • Home
  • 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 7847243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:50:02+00:00 2026-06-02T17:50:02+00:00

I have some measurement data which I want to plot. I plot only the

  • 0

I have some measurement data which I want to plot. I plot only the points and used the Curve Fitting Toolbox to generate a regression function which I plot.

Now I want to calculate and plot the tangent on a certain point. How can I do that using Matlab?

  • 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-02T17:50:04+00:00Added an answer on June 2, 2026 at 5:50 pm

    If you have point and function, you can calculate the tangent which is:

    let say the desired index is 5. y = mx+n

    m = (diff(y) ./ diff(y)) (5)
    n = y(5)-x(5)*m
    

    and then

    hold on
    

    plot (x, (m*x+n));

    links:

    http://www.kxcad.net/cae_MATLAB/toolbox/curvefit/bqxox7w.html
    http://www.weizmann.ac.il/matlab/toolbox/curvefit/cfit.html
    http://www.mathworks.com/matlabcentral/newsreader/view_thread/170100

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

Sidebar

Related Questions

I have some elisp files in a project that I want to byte compile
i have some data to write in data base (three strings); i have a
I have two time series of data, one which is water temperature and the
I'm using Python and its MySQLdb module to import some measurement data into a
I have some vectors of experimental data that I need to massage, for example:
I want to have a quite exact measurement of my cache implemented in java.
I have some formulas that I have defined as functions. I've then 'named' them
i have some problems in exporting crystal reports to pdf. My program crashes at
I have some custom post meta being generated and am ready to add to
i have some code that tries to list images based on their height. the

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.