More plot area ezplot

42 次查看(过去 30 天)
Pavel
Pavel 2014-5-13
编辑: A Jenkins 2014-5-13
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

采纳的回答

A Jenkins
A Jenkins 2014-5-13
编辑:A Jenkins 2014-5-13
Type
help ezplot
to learn more ways to use ezplot. You will see the following statement:
ezplot(FUN,[A,B]) plots FUN(X) over A < X < B

更多回答(1 个)

Dishant Arora
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])

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by