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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:31:22+00:00 2026-06-13T07:31:22+00:00

I have to find the two intersection points of pdf function of normal distribution.

  • 0

I have to find the two intersection points of pdf function of normal distribution.

I have calculated all the point (x,y) for the curves by iy = pdf('normal', ix, mu, sd) and plotted them on the screen which has two intersection points.
I have tried fzero function but it does not work the means and standard deviations are different for both curves so the length of the arrays are different.
I tried simplest logic two for loops but it did not work either.

The brute force approach did not work for me because of the precision in matlab it does not consider 24.000 and 24.001 for example and the resulting values from the gaussian has 15 integers after decimal point which made it impossible for matlab to check for equality.

  • 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-13T07:31:23+00:00Added an answer on June 13, 2026 at 7:31 am

    Trying to improve the answer as this is an accepted answer(Full credit to Eitan T who has explained beautifully in this related answer here about intersection of curves)

    You’ll have to find the point of intersection (px, py) manually:

    idx = find(y1 - y2 < eps, 1); %// Index of coordinate in array
    px = x(idx);
    py = y1(idx);
    

    Remember that we’re comparing two numbers in floating point representation, so instead of y1 == y2 we must set a tolerance. I’ve chosen it as eps, but it’s up to you to decide.

    To draw a circle around this point, you can compute its points and then plot them, but a better approach would be to plot one point with a blown-up circle marker (credit to Jonas for this suggestion):

    plot(px, py, 'ro', 'MarkerSize', 18)
    

    This way the dimensions of the circle are not affected by the axes and the aspect ratio of the plot.

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

Sidebar

Related Questions

i have to find out whether or not two collections have any intersection, the
i want to find the intersection of two lists in python. i have something
Possible Duplicate: Python: How to find list intersection? I have two lists of data
I need to find out the intersecting points of two circles. I have the
I am evaluating datamining packages. I have find these two so far: RapidMiner Weka
I have two Java instances of java.util.Date and I have to find out if
In my code base I find that two modules have structures with the same
I have two queries that find both the Zip codes, and the States for
I have two instances of a model and find that they seem to share
I have two actions in my controller : def find @item = Item.find(params[:id]) render

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.