How can i fplot two functions in different intervals?
이전 댓글 표시
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?
채택된 답변
추가 답변 (1개)
What about:
axes('NextPlot', 'add'); % Alternative: hold all
plot(1:10, rand(1, 10), 'r');
plot(6:15, rand(1, 10), 'b');
카테고리
도움말 센터 및 File Exchange에서 Evaluation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!