How to plot this, please help

I need to plot my data;
I have "data" (value: 26243x1 double) and "isi" (value: 45.7640) which is in ms[miliseconds].
Value 45.7640 means "45.7640 miliseconds" per sample (all samples are 26243).
How to plot this correct, I need to plot "data vs time"?

답변 (3개)

Wayne King
Wayne King 2012년 7월 8일
편집: Wayne King 2012년 7월 8일

0 개 추천

You mean just:
dt = 45.764e-3; t = 0:dt:(26243*dt)-dt;
x = randn(26243,1);
plot(t,x)
Mark Joker
Mark Joker 2012년 7월 8일
편집: Mark Joker 2012년 7월 8일

0 개 추천

Hmmm my "data" is not random. It have form:
data:
0.1382
0.1108
0.1028
0.0955
0.0864
0.0766
0.0558
0.0259
-0.0095
-0.0284
-0.0620
-0.1486
........

댓글 수: 1

Walter Roberson
Walter Roberson 2012년 7월 8일
t = 0 : isi : (length(data) - 1) * isi; plot(t, data)

댓글을 달려면 로그인하십시오.

Wayne King
Wayne King 2012년 7월 8일

0 개 추천

Just substitute your data for x. What is your data named? Supposed it is mydata
plot(t,mydata)
You have to realize I don't have your data so I had to create an example.

카테고리

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

태그

질문:

2012년 7월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by