フィルターのクリア

I cannot figure out how to get my data to plot on a simple line graph.

1 回表示 (過去 30 日間)
Elizabeth Gleneck
Elizabeth Gleneck 2021 年 12 月 2 日
回答済み: Chunru 2021 年 12 月 2 日
close all
close all
clc
hold off
finfo=ncinfo('Pop Up.cvs')
plot('Year','Num_corals')
xlabel('Year')
ylabel('Num_Corals')
  3 件のコメント
Elizabeth Gleneck
Elizabeth Gleneck 2021 年 12 月 2 日
Thank you. I attached it here.
Elizabeth Gleneck
Elizabeth Gleneck 2021 年 12 月 2 日
I'm trying to make a graph of the number of population on the x and the year on the y axis. I really apperiacte the help. Thank you

サインインしてコメントする。

回答 (1 件)

Chunru
Chunru 2021 年 12 月 2 日
data = readmatrix('Copy of Pop Up.csv');
x = data(:, 1);
y = data(:, 3);
plot(x, y);
% plot('Year','Num_corals') % This is not correct; doc plot
xlabel('Year')
ylabel('Num_Corals')

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by