Plot data from 2 different files in the same folder

13 Ansichten (letzte 30 Tage)
aquiano
aquiano am 6 Sep. 2016
Kommentiert: Sagar Mothkuri am 9 Feb. 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.

Akzeptierte Antwort

George
George am 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 Kommentare
George
George am 7 Sep. 2016
A = readtable('file1.csv');
B = readtable('file2.csv');
plot(A.var1, B.var2);
Sagar Mothkuri
Sagar Mothkuri am 9 Feb. 2020
Thanks. It helped me solve one of my issues. Cheers!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by