Punto de interseccion entre una funcion cualquiera y una o varias rectas verticales
조회 수: 42 (최근 30일)
이전 댓글 표시
Buenas, estoy desarrollando un programa para calcular el primer momento de area de cualquier seccion, pero se me presento un problema, y es que necesito saber los puntos de interseccion que hay entre una funcion cualquiera y una o varias lineas verticales. Para el caso de dos funciones no seria complicado, pero una linea vertical no representa una funcion y hasta ahora no se me ocurre como hacerlo. Las lineas verticales representarian las lineas verticales de la forma de una seccion de viga , y pues yo ya localize el centroide del area, entonces defino una funcion constante (una linea horizontal) que cortara a las lineas verticales de la seccion y necesito saber las coordenas "x" de los puntos de corte para poder continuar porque la coordenada "y" ya la tengo pues es la misma que la del centroide. Porfavor, si a alguien se le ocurre algo, le estaria muy agradecido.
Adjunto una imagen por si no me explique bien. GRACIAS.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/282732/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/282732/image.png)
댓글 수: 1
KSSV
2020년 4월 8일
Google English traslation:
Good, I am developing a program to calculate the first moment of area of any section, but a problem appeared to me, and that is that I need to know the points of intersection that exist between any function and one or more vertical lines. In the case of two functions it would not be complicated, but a vertical line does not represent a function and so far I cannot think of how to do it. The vertical lines would represent the vertical lines of the shape of a beam section, and since I already located the centroid of the area, then I define a constant function (a horizontal line) that will cut the vertical lines of the section and I need to know the coordinates "x" of the cut points to be able to continue because the coordinate "y" I already have it because it is the same as that of the centroid. Please, if someone comes up with something, I would be very grateful.
채택된 답변
KSSV
2020년 4월 8일
Have a look on this function: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!