Connecting multiple scattered points through a line

2 ビュー (過去 30 日間)
Matt
Matt 2014 年 7 月 14 日
Hi
I plot a scatter for multiple points and i want to connect them using line. Below is my code. The plot i get is only scatter, I cant connect them through a line. Any help appreciated!
subplot(2,2,2)
hold all
for i=1:8
scatter(Emax{1,i},Eneregy{i}-Loss{1,i},'X')
line(Emax{1,i},-Loss{1,i})
end
Thanks
Matt

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by