필터 지우기
필터 지우기

how to plot 1000 samples , one sample generating at i mili sec.

조회 수: 1 (최근 30일)
MANJUNATH
MANJUNATH 2012년 10월 11일
i hava data(voltage ) from which i want plot 1000 samples each generating at 1 mili second ,
if i use hist (data), i need those 1000 samples on x-axis , and the corresponding voltage values at y-axis or
using stem(data) does the same work what i need ?
plz clarify my doubt .
thanku
Manjunath

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 10월 11일
hist and stem are not the same. hist command allows to represent distribution of data, but stem command is like plot with the difference that points are'nt joined. stem command is used to represent discret signal. Look at the difference when you have less data
close
t=0:10
y=abs(sin(100*t))
subplot(2,1,1);stem(t,y)
subplot(2,1,2),hist(y)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time Series에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by