solving parabola with x and y intercept
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Jarrod
 el 3 de Oct. de 2023
  
    
    
    
    
    Respondida: Jarrod
 el 3 de Oct. de 2023
            Im currently trying figure out how to graph a parabola given x and y intercept
function y = parshelter(x1,y1,x2,y2)
%where i need help%
end
---im trying to call it from another code ---
xstart=0
ystart=24
xend=10
yend=0
parshelter(xstart,ystart,xend,yend)
any help would be nice as ive been trying for hours now
(xstart,ystart) is the y intercept and (xend,yend) is a x intercept
2 comentarios
  John D'Errico
      
      
 el 3 de Oct. de 2023
				
      Editada: John D'Errico
      
      
 el 3 de Oct. de 2023
  
			You can't. If you are asking what I think you are...
There are infinitely many parabola that pass through two points, an x-intercept, and a y-intercept. There is no unique solution.
If you want a unique solution, then a straight line will pass through the two points, AND a straight line is just a parabola with a zero quadratic coefficient. Think of the straight line as the simplest possible parabola, or if you prefer, a degenerate parabola.
Respuesta aceptada
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

