Opening Multiple .csv files

조회 수: 3 (최근 30일)
Rand Khalid
Rand Khalid 2024년 2월 13일
답변: Star Strider 2024년 2월 13일
I have 2 slightly different .csv files that I want to open at once with Matlab (2021) and plot certain columns from. Both files have more than 100 columns, in which not all of them have the same name, however some of the columns are similar, and I only need to extract the data from the similar columns. How can I open and plot from both csv files and keeping both figures on? So far, I am successful in opening both files and plotting the data for both of them but once the second part of the code opens the second file, the figure of the first file is overriden.

답변 (1개)

Star Strider
Star Strider 2024년 2월 13일
If you want to plot each file in a different figure, create a new figure for each file.
You can easily do that in the loop that reads the files. You can then save the figures individually (with different file names) using savefig or related functions.

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by