How can i fplot two functions in different intervals?
Mostra commenti meno recenti
I have two functions, F1 and F2. function F1 is calculate in interval [a,b] and function F2 in [c,d]. How can i plot both them in one figure?
Risposta accettata
Più risposte (1)
What about:
axes('NextPlot', 'add'); % Alternative: hold all
plot(1:10, rand(1, 10), 'r');
plot(6:15, rand(1, 10), 'b');
1 Commento
fatemeh
il 27 Lug 2013
Categorie
Scopri di più su Evaluation in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!