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 8918047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:39:09+00:00 2026-06-15T05:39:09+00:00

I have this equation: f(t) = <x(t),y(t)> What I would first like to do

  • 0

I have this equation:

f(t) = <x(t),y(t)>

What I would first like to do is figure out the normal vector at some point, t1. How do I do this in MATLAB?

I would then like to figure out the angle between the normal vector and the x-axis in MATLAB. If I can bypass finding the normal vector and just figure out the angle straight from f(t), that might be better.

it would be nice if there were some vector manipulation functions or something that I could use instead of manually taking the derivative of x(t) and y(t) and then finding the magnitude and all that stuff. Any help would be great!

  • 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-15T05:39:11+00:00Added an answer on June 15, 2026 at 5:39 am

    With dx being the time derivative of x, i.e. (x(t+1)-x(t-1))/(2dt) (you can also use forward differentiation instead of central differences, of course), and dy the corresponding time derivative of y, you can find the angle between the normal and the x-axis easily from the vector [dx,dy], since its normal is just [-dy,dx].

    Assuming n-by-1 arrays x and y with the coordinates, you do this as follows:

    %# take the time derivative
    dx = (x(3:end)-x(1:end-2))/2;
    dy = (y(3:end)-y(1:end-2))/2;
    
    %# create the normal vector
    nvec = [-dy,dx];
    
    %# normalize the normal vector
    nvecN = bsxfun(@rdivide,nvec,sqrt(sum(nvec.^2,2)));
    
    %# take the arc-cosine to get the angle in degrees (acos for radian)
    %# of the projection of the normal vector onto the x-axis
    angle = acosd(nvecN(:,1));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data set, and I would like to apply an equation to
I think I have this right but I would like someone to verify that.
Math : If you have an equation like this: x = 3 mod 7
I have a pair of points and I would like to find a circles
I have an equation for a parabolic curve intersecting a specified point, in my
Have this query: SELECT HOUR( DATE ) AS hr, COUNT( * ) AS cnt
Have this self-made slider: http://jsfiddle.net/wyc3P/4/ What it does: takes min and max values in
I have this string 2012-06-27 16:17:06 and I want to convert it to GMT
I have this application where I implement the ActionBar Fragment interface. Underlying the interface,
I have this form, in which i need to populate a combo box with

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.