How do I make a stem plot in MATLAB?
42 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
WONG SIAN
am 18 Feb. 2011
Beantwortet: RAMA ARAVINTH
am 24 Jun. 2021
How do I make an input sequence named n with a step of 1, ranging from -10 to 10?
Once I do that, how then do I make a stem plot of a function of n.
Then how to label both the x and y axes and add titles?
0 Kommentare
Akzeptierte Antwort
Paulo Silva
am 18 Feb. 2011
n=-10:10;
a=0*n;
a(n>=0)=1;
stem(a)
xlabel('this is the x label')
ylabel('this is the y label')
title('this is the title')
0 Kommentare
Weitere Antworten (1)
RAMA ARAVINTH
am 24 Jun. 2021
n=-10:10;
a=0*n;
a(n>=0)=1;
stem(a)
xlabel('this is the x label')
ylabel('this is the y label')
title('this is the title')
0 Kommentare
Siehe auch
Kategorien
Mehr zu View and Analyze Simulation Results finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!