having troubles using 3 stem function on the same figure. my code (only for the plot part) is:
figure(1)
stem(s,'*');
hold
stem (v,'kx');
hold
stem(x,'color',([0 0.5 0]));
title('the discrete signals');
xlabel('n');
ylabel('signal value');
legend('s[n]','v[n]','x[n]');
how can I fix that?
hold onandhold off, so the intent is clear. For for your own sake and others reading the code later. – Dec 23 '14 at 18:17