Clear Filters
Clear Filters

Plot data from 2 different files in the same folder

4 views (last 30 days)
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.

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!