Plot two functions on the same graph in MATLAB using ezplot

*爱你&永不变心* 提交于 2019-12-23 12:06:12

问题


i would like to plot the following three functions in MATLAB using ezplot() but i want the functions to be on the same graph to easily interpret the differences. is this possible? if so how? the three function are:

x^3
x^5
x^7

thanks,
mysticxhobo


回答1:


Just use hold on to plot them in succession on the same axes:

figure;
hold on;
ezplot('x^3');
ezplot('x^5');
ezplot('x^7');


来源:https://stackoverflow.com/questions/6602982/plot-two-functions-on-the-same-graph-in-matlab-using-ezplot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!