Plotting data
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi
i have data called x(26*1 cell) & y(26*1 cell)
sometimes my x & y data will be timestamp
Not able to plot
using plot(x,y) getting error
??? Error using ==> plot Not enough input arguments.
Thanks in advance
0 Commenti
Risposta accettata
Più risposte (1)
Thomas
il 2 Apr 2012
try
x_new=datenum(x,'dd-mmm-yyyy HH:MM:SS'); % xaxis time stamp format
y=cell2mat(y) % y axis
plot(x_new,y);
hold on
datetick('x','dd-mmm-yyyy HH:MM:SS') % to show the date time in graph
0 Commenti
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!