How do I specify an axes when plotting timeseries data?
Mostra commenti meno recenti
I cannot use the plot function on timeseries data with an axis handle as the first input. I use timeseries data a lot and use the plot command with it. However, I cannot plot a timeseries directly to a particular axis unless I manually specify the time and data vector. See below code:
>> x = timeseries([10;15;18;28],[0; 1; 2; 3])
>> figure
>> h1 = gca
>> plot(h1,x) % does not work
>> plot(h1,x.Time,x.Data) % this does work. This is not ideal
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Time Series 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!