3x-y+4=0 how to solve this equation in matlab
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
3x-y+4=0
1 comentario
Star Strider
el 7 de Oct. de 2022
There are an infinity of solutions for one equation in two unknowns.
Respuestas (1)
Sam Chak
el 8 de Oct. de 2022
Hi @Adam
The given equation
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1149400/image.png)
can be rewritten in this familiar line equation form
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1149405/image.png)
You can substitute any real value into x and find y
If there is another curve that intersects with the line, then you can find a unique solution.
If there are two intersections, then there are two solutions.
x = -4:0.1:4;
y = 3*x + 4;
plot(x, y), grid on
xlabel('x'), ylabel('y')
0 comentarios
Ver también
Categorías
Más información sobre Mathematics and Optimization en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!