Plot system of equations
16 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/236996/79CCF4E5-769E-4CD1-8CAA-FC2D01124E2F.jpeg)
I need help on how to type this in Matlab and make a plot of this system of equations.
3 Commenti
Risposte (1)
Bhargavi Maganuru
il 9 Set 2019
You can create function handles to the named or anonymous functions.
For example, for first equation in your system of equations you can write
x=linspace(-5,5);
f = @(x) (9*x+1)/3;
For more information about creating function handles refer to the link https://www.mathworks.com/help/matlab/matlab_prog/creating-a-function-handle.html
You can use fplot(f) function to create a plot defined by y=f(x)
fplot(f)
ylim([-5,5]) %to limit y-axis from -5 to 5
For more information about fplot refer to the link https://www.mathworks.com/help/matlab/ref/fplot.html
0 Commenti
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!