使用ezplot在MATLAB中在同一图表上绘制两个函数

4 matlab plot higher-order-functions

我想使用ezplot()在MATLAB中绘制以下三个函数,但我希望函数在同一个图上,以便轻松解释差异.这可能吗?如果是这样的话?这三个功能是:

x^3
x^5
x^7
Run Code Online (Sandbox Code Playgroud)

谢谢,
mysticxhobo

Pen*_*One 7

只需用hold on它们在相同的轴上连续绘制它们:

figure;
hold on;
ezplot('x^3');
ezplot('x^5');
ezplot('x^7');
Run Code Online (Sandbox Code Playgroud)