curve intersection and minimum value

11 ビュー (過去 30 日間)
Firas
Firas 2015 年 6 月 5 日
コメント済み: Firas 2015 年 6 月 12 日
Hy every one I have a small question :) It seem s very simple and easy but I did not succeed ... This is a simple script n=10 x1=linspace(0,2.5,n) x2=linspace(1,12,n) x3=linspace(1.5,8,n) x4=linspace(5,16,n) y1=1.2*x1 y2=1.3*x2+3 y3=2*x3 y4=3*x4 figure plot(x1,y1,'r','LineWidth',3) hold on plot(x2,y2,'b','LineWidth',3) hold on plot(x3,y3,'g','LineWidth',3) hold on plot(x4,y4,'k','LineWidth',3) legend('y1','y2','y3','y4')
not so difficult until now ...
The challenge is to draw the pink line ( or having a table with x and y for each point ) .
I don't knew if any one can help me
Thank you
  2 件のコメント
Sean de Wolski
Sean de Wolski 2015 年 6 月 5 日
Are you trying to have the pink line trace the minimum y at each x point? Otherwise it's unclear to me what the pink line represents.
Firas
Firas 2015 年 6 月 12 日
Yes Sean :) for each x , I want the minimum value of y Thanks

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by