How to plot this, please help
Mostra commenti meno recenti
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"?
Risposte (3)
Wayne King
il 8 Lug 2012
Modificato: Wayne King
il 8 Lug 2012
You mean just:
dt = 45.764e-3; t = 0:dt:(26243*dt)-dt;
x = randn(26243,1);
plot(t,x)
Mark Joker
il 8 Lug 2012
Modificato: Mark Joker
il 8 Lug 2012
1 Commento
Walter Roberson
il 8 Lug 2012
t = 0 : isi : (length(data) - 1) * isi; plot(t, data)
Wayne King
il 8 Lug 2012
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.
Categorie
Scopri di più su Line Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!