Plotting three multivariable user defined functions on one graph

1 回表示 (過去 30 日間)
Thomas
Thomas 2013 年 12 月 3 日
回答済み: Walter Roberson 2013 年 12 月 3 日
I have three functions that I created and I want to place them all on one graph. Each function has a couple variables that are defined within a data file. I can plot one function at a time fine, but I am having trouble getting them all to be on one graph.
I am using fplot to plot my functions(not sure if there is an easier way)
fplot(@Fn1,[-10,10],[],[],[],a,b,e)
fplot(@Fn2,[-10,10],[],[],[],c,f)
fplot(@Fn3,[-10,10],[],[],[],d,g)
It should look something like this when its all said and done. http://screencast.com/t/4EIecQmr
Thank you for your time.

採用された回答

Walter Roberson
Walter Roberson 2013 年 12 月 3 日
See "hold on"
You might also want to see fill()

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by