Find intersection point of two lines when I have their coordinates ? (2024)

91 Ansichten (letzte 30 Tage)

Ältere Kommentare anzeigen

Suman Debnath am 20 Mai 2017

  • Verknüpfen

    Direkter Link zu dieser Frage

    https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates

  • Verknüpfen

    Direkter Link zu dieser Frage

    https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates

Kommentiert: Dimitar Slavchev am 18 Mär. 2021

Akzeptierte Antwort: Roger Stafford

I have four COORDINATES of two lines - [x1,y1], [x2,y2], [x3,y3], [x4,y4]. Now, how to get the coordinate of their intersecting point [x,y] ? Any help ??

4 Kommentare

2 ältere Kommentare anzeigen2 ältere Kommentare ausblenden

John D'Errico am 20 Mai 2017

Direkter Link zu diesem Kommentar

https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#comment_455375

  • Verknüpfen

    Direkter Link zu diesem Kommentar

    https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#comment_455375

Roger Stafford am 21 Mai 2017

Direkter Link zu diesem Kommentar

https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#comment_455533

  • Verknüpfen

    Direkter Link zu diesem Kommentar

    https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#comment_455533

Suman, I would suggest you break your problem into three steps.

Step 1: Letting the intersection point have the unknown coordinates x0 and y0, write an equation that expresses the equality of the slope of a line connecting (x1,y1) and (x2,y2) to the slope of the line connecting (x1,y1) and (x0,y0). Similarly, write a second equation equating the slopes of lines involving (x3,y3), (x4,y4), and (x0,y0). This gives you two linear equations in two unknowns.

Step 2: Perform appropriate algebraic manipulation on these equations and then translate these into a single matrix equation - that is, for example, the unknown 1-by-2 vector, [x0,y0], multiplied by a 2-by-2 matrix of known coefficients that is to equal a known 1-by-2 vector.

Step 3: Use matlab’s slash “/” operator to solve this matrix equation for the unknown vector, [x0,y0]. (This is equivalent to finding the matrix inverse of the above 2-by-2 matrix.)

Suman Debnath am 22 Mai 2017

Direkter Link zu diesem Kommentar

https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#comment_455737

  • Verknüpfen

    Direkter Link zu diesem Kommentar

    https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#comment_455737

John, I did it. But I think the equation is too long. So, I just wanted to know if there is any short form of that or not.

Jan am 22 Mai 2017

Direkter Link zu diesem Kommentar

https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#comment_455755

  • Verknüpfen

    Direkter Link zu diesem Kommentar

    https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#comment_455755

@Suman: Yes, there is a short form. Did you read the link posted by John? This is an exhaustive solution already. Making an effort means also, to ask an internet search engine.

Melden Sie sich an, um zu kommentieren.

Melden Sie sich an, um diese Frage zu beantworten.

Akzeptierte Antwort

Roger Stafford am 23 Mai 2017

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#answer_268007

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#answer_268007

Bearbeitet: Roger Stafford am 23 Mai 2017

In MATLAB Online öffnen

The result of the three steps I mentioned would be:

xy = [x1*y2-x2*y1,x3*y4-x4*y3]/[y2-y1,y4-y3;-(x2-x1),-(x4-x3)];

I don’t consider that too long or complicated an expression. The xy variable here is a 1-by-2 vector consisting of the x and y coordinates of the intersection.

1 Kommentar

-1 ältere Kommentare anzeigen-1 ältere Kommentare ausblenden

Dimitar Slavchev am 18 Mär. 2021

Direkter Link zu diesem Kommentar

https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#comment_1401067

  • Verknüpfen

    Direkter Link zu diesem Kommentar

    https://de.mathworks.com/matlabcentral/answers/341125-find-intersection-point-of-two-lines-when-i-have-their-coordinates#comment_1401067

For the edge cases:

Where the two lines are the same line you will get NaNs:

>> LineIntersect(0,0,1,1,0,0,1,1)

Warning: Matrix is singular to working precision.

> In LineIntersect (line 11)

ans =

NaN NaN

And for parallel lines, Infinity:

>> LineIntersect(0,0,1,1,0,1,1,2)

Warning: Matrix is singular to working precision.

> In LineIntersect (line 11)

ans =

-Inf -Inf

LineIntersect is just the above formula from Roger Stafford inside a function. The line is 11, because of comments.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Melden Sie sich an, um diese Frage zu beantworten.

Siehe auch

Kategorien

MATLABLanguage FundamentalsLoops and Conditional Statements

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

  • line

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Es ist ein Fehler aufgetreten

Da Änderungen an der Seite vorgenommen wurden, kann diese Aktion nicht abgeschlossen werden. Laden Sie die Seite neu, um sie im aktualisierten Zustand anzuzeigen.


Translated by Find intersection point of two lines when I have their coordinates ? (8)

Find intersection point of two lines when I have their coordinates ? (9)

Website auswählen

Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .

Sie können auch eine Website aus der folgenden Liste auswählen:

Amerika

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europa

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom(English)

Asien-Pazifik

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Kontakt zu Ihrer lokalen Niederlassung

Find intersection point of two lines when I have their coordinates ? (2024)

FAQs

What is the formula for coordinates of point of intersection of two lines? ›

The point of intersection formula is used to find the point of intersection of the two lines, that is the meeting point of two lines. These two lines can be represented by the equation a1x+b1y+c1=0 and a2x+b2y+c2=0, respectively. It is possible to find point of intersection of three or more lines.

How to find the coordinates of the point of intersection of two functions? ›

Here's a step-by-step process:
  1. Write down the equations of the two functions, f(x) and g(x).
  2. Set the two functions equal to each other: f(x) = g(x).
  3. Solve the equation for x. ...
  4. For each x-value found in step 3, plug it back into either f(x) or g(x) to find the corresponding y-value.

How do you find the point on the intersection line of two planes? ›

To find a point on the line, you set one of the coordinates in the equations of both planes equal to zero and solve the system of equations you end up with. Note! If you set z = 0 and the line of intersection is perpendicular to the z -axis, no points on the line have z = 0 .

How do you find a line with two coordinates? ›

Given two points on a line, we can write an equation for that line by finding the slope between those points, then solving for the y-intercept in the slope-intercept equation y=mx+b. In this example, we write an equation of the line that passes through the points (-1,6) and (5,-4).

What is the two line point of intersection formula? ›

Point of intersection means the point at which two lines intersect. These two lines are represented by the equation a1x + b1y + c1= 0 and a2x + b2y + c2 = 0, respectively. Given figure illustrate the point of intersection of two lines. We can find the point of intersection of three or more lines also.

How do you find the coordinates of a point with two coordinates? ›

Step 1: Identify the independent and dependent variables. Step 2: Identify the two coordinates that are mentioned in the problem. Step 3: Use the points to identify the slope of our formula. Step 4: Plug in our slope and one of our given points into the point-slope formula to create our linear equation.

What is the intersection of two lines called? ›

The intersection of two lines is called the point of intersection. Since lines are straight figures, a line may only cross another line at one single point.

How do you find point of intersection of a line and a plane vectors? ›

Steps to Find Point(s) of Intersection
  1. Substitute the line's parametric equations into the standard form of the plane.
  2. Solve for the parameter: ...
  3. If there is a valid solution, substitute the value of the parameter back into the equation of the line to find the point of intersection.

What is the point of intersection of two lines in a plane? ›

(viii) Two lines in a plane always intersect in a point. (ix) If two lines intersect at a point P, then P is called the point of concurrence of the two lines. (x) If two lines intersect at a point P, then p is called the point of intersection of the two lines.

How can two lines intersect at two points? ›

Two straight lines will intersect at a point if they are not parallel. The point of intersection is the meeting point of two straight lines. If two crossing straight lines have the same equations, the intersection point can be found by solving both equations at the same time.

How to find coordinates of intersection of curve and line? ›

To find these points you simply have to equate the equations of the two lines, where they equal eachother must be the points of intersection. And from then this is a simple case of solving the quadratic. This expression factorises to (x+2)(x+3)=0 which implies either x=-2 or x=-3.

What is the formula for the intersection of two events? ›

P(A∩B) is the probability of both independent events “A” and "B" happening together, P(A∩B) formula can be written as P(A∩B) = P(A) × P(B), where, P(A∩B) = Probability of both independent events “A” and "B" happening together. P(A) = Probability of an event “A”

How to find the intersection of two sets? ›

For any two sets A and B, the intersection, A ∩ B (read as A intersection B) lists all the elements that are present in both sets (common elements of A and B). For example, if Set A = {1,2,3,4,5} and Set B = {3,4,6,8}, A ∩ B = {3,4}.

Top Articles
Chase Bank Holiday Hours 2024-2025: Closed or Open Schedule
How to Recognize That a Loved One Is Dying
Worcester Weather Underground
Cappacuolo Pronunciation
Skyward Houston County
DPhil Research - List of thesis titles
7 Verification of Employment Letter Templates - HR University
Valley Fair Tickets Costco
Get train & bus departures - Android
Mylaheychart Login
Nikki Catsouras Head Cut In Half
Visustella Battle Core
Cars For Sale Tampa Fl Craigslist
Urban Dictionary Fov
10 Great Things You Might Know Troy McClure From | Topless Robot
Shemal Cartoon
Hair Love Salon Bradley Beach
Huge Boobs Images
charleston cars & trucks - by owner - craigslist
Pricelinerewardsvisa Com Activate
Imagetrend Inc, 20855 Kensington Blvd, Lakeville, MN 55044, US - MapQuest
Transfer and Pay with Wells Fargo Online®
Georgia Vehicle Registration Fees Calculator
E22 Ultipro Desktop Version
Wausau Marketplace
Bing Chilling Words Romanized
Strange World Showtimes Near Roxy Stadium 14
Uta Kinesiology Advising
Craigslist Lewes Delaware
Purdue 247 Football
Japanese Mushrooms: 10 Popular Varieties and Simple Recipes - Japan Travel Guide MATCHA
Craigslist Lake Charles
Criterion Dryer Review
Blackboard Login Pjc
Ou Football Brainiacs
How rich were the McCallisters in 'Home Alone'? Family's income unveiled
How to Use Craigslist (with Pictures) - wikiHow
Metro By T Mobile Sign In
Unlock The Secrets Of "Skip The Game" Greensboro North Carolina
Cross-Border Share Swaps Made Easier Through Amendments to India’s Foreign Exchange Regulations - Transatlantic Law International
Usf Football Wiki
Pitchfork's Top 200 of the 2010s: 50-1 (clips)
Philadelphia Inquirer Obituaries This Week
Rage Of Harrogath Bugged
Mars Petcare 2037 American Italian Way Columbia Sc
Verizon Outage Cuyahoga Falls Ohio
Craigslist Pets Plattsburgh Ny
Entry of the Globbots - 20th Century Electro​-​Synthesis, Avant Garde & Experimental Music 02;31,​07 - Volume II, by Various
Emily Browning Fansite
8 4 Study Guide And Intervention Trigonometry
Walmart Listings Near Me
March 2023 Wincalendar
Latest Posts
Article information

Author: Carlyn Walter

Last Updated:

Views: 5285

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Carlyn Walter

Birthday: 1996-01-03

Address: Suite 452 40815 Denyse Extensions, Sengermouth, OR 42374

Phone: +8501809515404

Job: Manufacturing Technician

Hobby: Table tennis, Archery, Vacation, Metal detecting, Yo-yoing, Crocheting, Creative writing

Introduction: My name is Carlyn Walter, I am a lively, glamorous, healthy, clean, powerful, calm, combative person who loves writing and wants to share my knowledge and understanding with you.