Plot data from 2 different files in the same folder

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.

 Respuesta aceptada

George
George el 6 de Sept. de 2016
It doesn't matter what files the data is in. You need to load the data and run the associated plotting commands.

3 comentarios

aquiano
aquiano el 6 de Sept. de 2016
What commands do I use to get the data from 2 different files to be plotted on one plot
A = readtable('file1.csv');
B = readtable('file2.csv');
plot(A.var1, B.var2);
Thanks. It helped me solve one of my issues. Cheers!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 6 de Sept. de 2016

Comentada:

el 9 de Feb. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by