Effacer les filtres
Effacer les filtres

Plot data from 2 different files in the same folder

4 vues (au cours des 30 derniers jours)
aquiano
aquiano le 6 Sep 2016
Commenté : Sagar Mothkuri le 9 Fév 2020
How do I plot data from 2 files in to the same graph I have two files; program1_1 program2_2
the files are almost identical but with a few different values for different variables.

Réponse acceptée

George
George le 6 Sep 2016
It doesn't matter what files the data is in. You need to load the data and run the associated plotting commands.
  3 commentaires
George
George le 7 Sep 2016
A = readtable('file1.csv');
B = readtable('file2.csv');
plot(A.var1, B.var2);
Sagar Mothkuri
Sagar Mothkuri le 9 Fév 2020
Thanks. It helped me solve one of my issues. Cheers!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by