plotting two symbolic functions in different intervals

1 回表示 (過去 30 日間)
ALPER
ALPER 2014 年 11 月 27 日
コメント済み: Star Strider 2014 年 11 月 27 日
Hi,
I want to use ezplot command to obtain two function graphics in different intervals. For example;
syms x
f1=x;
f2=x^2;
ezplot(f1,[0,5]);
hold on;
ezplot(f2,[5 10]);
I expect matlab to show f1 and f2 on the same graph but it just shows f2 plot in [5 10] interval.
What shoul I do to see two functions on the same graph using ezplot command?
  1 件のコメント
Star Strider
Star Strider 2014 年 11 月 27 日
The ezplot function won’t do that, and neither will fplot. You will have to use plot to get the behaviour you want.
Sorry.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by