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.

Antworten (0)

Tags

Gefragt:

am 4 Okt. 2015

Bearbeitet:

am 4 Okt. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by