Plotting data from a .csv file
941 ビュー (過去 30 日間)
古いコメントを表示
Hi I need to plot a graph in MATLAB using data from a .csv file which has 2 columns of data, column A and column B. Can you please tell me the codes to use to do that? Thanks.
Winee
採用された回答
sixwwwwww
2013 年 12 月 4 日
you can do it as follows:
Array=csvread('filename.csv');
col1 = Array(:, 1);
col2 = Array(:, 2);
plot(col1, col2)
3 件のコメント
Carolina Pulido
2020 年 6 月 10 日
I was able using this commands. Thanks. Reddy, check don't use titles into the columns.
Anthony Sirico
2020 年 6 月 15 日
Can i plot data froma CSV file with a column of Names?, i.e col1 = star names, col2 = distances.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!