How to plot multiple curves in a figure?

Hello, I just wanted to ask how to plot a curve generated from a function multiple times in the same figure varying parameters each time i execute the function?? so that one can easily compare the effect of parameter variation. Plz help. Thnk you.

回答(1 个)

GeneratePlot(parameters1)
hold on
GeneratePlot(parameters2)
GeneratePlot(parameters3)

类别

帮助中心File Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by