![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/814954/image.png)
System of linear equations
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Shimanto Sarker
am 27 Nov. 2021
Beantwortet: Abdelrhman Abdelfatah
am 27 Nov. 2021
Draw the plot of the following equations in same graph,
System of linear equations with one solution (x+3y = 5, 2x-y = 17)
1 Kommentar
Abdelrhman Abdelfatah
am 27 Nov. 2021
Here you go,
syms x y
y1=(1/3)*(5-x);
y2= 2*x-17
figure
fplot (y1,[0,50],'r')
title('System of Linear Equations')
xlabel('X value')
ylabel ('Y value')
grid on
hold on
fplot(y2,[0,50],'b')
hold off
legend ('Y1','Y2')
And here is the output graph
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/814954/image.png)
Akzeptierte Antwort
Abdelrhman Abdelfatah
am 27 Nov. 2021
Check if this is what u wanted
syms x y
y1=(1/3)*(5-x);
y2= 2*x-17
figure
fplot (y1,[0,50],'r')
title('System of Linear Equations')
xlabel('X value')
ylabel ('Y value')
grid on
hold on
fplot(y2,[0,50],'b')
hold off
legend ('Y1','Y2')
And this is the output graph
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/814959/image.png)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!