Stem Function Coincidence, Plot Settings

Hey, I am new to matlab and I am struggling to solve this problem;
t = 0:0.1:0.5;
x = t;
stem(t,x)
hold on
t = 0.5:0.1:1;
y = 1-t;
stem(t,y)
on the graph where t=0.5 I can only see either f(x) or f(y), is there a way to see them both near by near where they correspond t=0.5, two line to their correspondings, thank you.
In the jpeg, the above is mine and the below is the one I need.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Stem Plots에 대해 자세히 알아보기

태그

질문:

2015년 10월 4일

편집:

2015년 10월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by