More plot area ezplot
조회 수: 23 (최근 30일)
이전 댓글 표시
Hi. I ploteted 2 symbolic functions and I need to see on plot where they have the common domain. When I move my plot to the left, with the pan tool, the function's graphic stops and I'm not able to see the common domain. How can I see more of the function plot? Thank you.
The code is:
clear
clc
syms x
%functia obiectiv
f=ezplot(10*sin(x));
set(f,'Color','black', 'LineWidth', 2)
hold on
%conditia la limita
j=ezplot((x-6)^2)
set(j,'Color','red', 'LineWidth', 2)
grid on
댓글 수: 0
채택된 답변
추가 답변 (1개)
Dishant Arora
2014년 5월 13일
By default ezplot plots over the range -pi to pi. You can explicitly specify the range:
ezplot(fun,[min,max])
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!