Plotting data from table
Mostra commenti meno recenti
how can i plot every column ( of a 2 columns table )as a function of time in two different axes ?
Risposte (2)
José-Luis
il 20 Dic 2013
doc plotyy
6 Commenti
Elia
il 20 Dic 2013
José-Luis
il 20 Dic 2013
What have you tried so far? Where's your time data? What's wrong with:
plotyy(x1,y1,x2,y2)
José-Luis
il 20 Dic 2013
I am sorry, what do you mean by a table? How did you make it?
Elia
il 20 Dic 2013
José-Luis
il 20 Dic 2013
figure(1)
t = uitable;
set(t,'Data',rand(10,3));
data = get(t,'Data');
figure(2)
aH(1) = subplot(1,2,1);
aH(2) = subplot(1,2,2);
plot(aH(1),data(:,1),data(:,2));
plot(aH(2),data(:,1),data(:,3));
Categorie
Scopri di più su Subplots 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!