Plot multiple lines from multiple tables
Mostra commenti meno recenti
I'm trying to process data from fortran and i want to plot the radius over time from lots of different tables that i've read using
filename7='24.dat'
T7=readtable(filename,"VariableNamingRule","preserve")
T7=renamevars(T7, ["Var1", "Var2", "Var3", "Var4"], ["Time","Ts","Rd","Teff"])
filename2='90.dat'
T2=readtable(filename2,"VariableNamingRule","preserve")
T2=renamevars(T2, ["Var1", "Var2", "Var3", "Var4"], ["Time","Ts","Rd", "Teff"])
but i've got up to 12 different tables named T1- 12
this is what i used to make individual plots
filename2='90.dat'
T2=readtable(filename2,"VariableNamingRule","preserve")
T2=renamevars(T2, ["Var1", "Var2", "Var3", "Var4"], ["Time","Ts","Rd", "Teff"])
plot(T2.Time, T2.Rd)
grid on
xlabel('Time [ms]')
ylabel('Droplet Radius [um]')
title('Pure SME Droplet Lifetime 90 QCs ')
filename7='24.dat'
T7=readtable(filename7,"VariableNamingRule","preserve")
T7=renamevars(T7, ["Var1", "Var2", "Var3", "Var4"], ["Time","Ts","Rd","Teff"])
plot(T7.Time, T7.Rd)
grid on
xlabel('Time [ms]')
ylabel('Droplet Radius [um]')
title('Pure SME Droplet Lifetime 24 QCs ')
How can i plot the a specific column (radius) from all the tables over time as its the same time step for all of them so i can end up with something similar to this:

Risposta accettata
Più risposte (0)
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!