How to create two graphs in difference figure in one function?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Samious
am 23 Mär. 2014
Kommentiert: Samious
am 23 Mär. 2014
Hey guys, I have a question I would like to ask about how to create two difference graph (not in the same set of axis) in a completely difference figure but under the same function.
For example
function graph(a,b)
x=a y=x^2
Y=x+b
plot1(x,y)
plot2(x,Y)
so how do I create these two difference graph in the same function? (not in the same graphic figure)
0 Kommentare
Akzeptierte Antwort
Gareth Thomas
am 23 Mär. 2014
Hi Samious,
If you use the command
figure
you will get a new graph.
function graph(a,b)
x=a y=x^2
Y=x+b
plot1(x,y)
figure
plot2(x,Y)
Does this help you? Gareth
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots 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!