plotting vectors of 3 population over years
1 回表示 (過去 30 日間)
古いコメントを表示
3 vectors that need to be plotted to show each population as each year goes by. so far both plot() and plotv() create a table and no errors but nothings is displayed on the table any help is appreciated
2 件のコメント
KSSV
2018 年 4 月 19 日
How is your data? How you want the plot? There are various ways to display the data in MATLAB.
回答 (1 件)
Akira Agata
2018 年 4 月 26 日
I think you have to make year vector to plot your data, like:
vec1 = [115600 765840 123423];
vec2 = [115100 765440 543245];
vec3 = [123600 763210 324323];
year = [2000 2005 2010];
figure
plot(year,vec1)
hold on
plot(year,vec2)
plot(year,vec3)
legend({'vec1','vec2','vec3'})
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!