Scatter Plotting multiple graphs(x, y) on a single graph

조회 수: 40 (최근 30일)
olu Bamiduro
olu Bamiduro 2014년 8월 12일
댓글: Aieman Haziq 2022년 1월 12일
I would like to scatter plot five pieces of data (eg. X1, Y1, X2, Y2, X3, Y3......X5, Y5) all on one graph?

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 8월 12일
편집: Azzi Abdelmalek 2014년 8월 12일
scatter([X1,X2,X3,X4,X5],[Y1,Y2,Y3,Y4,Y5])
%or
scatter(X1,Y1)
hold on
scatter(X2,Y2)
scatter(X3,Y3)
scatter(X4,Y4)
scatter(X5,Y5)
  댓글 수: 2
pranjali vatsalaya
pranjali vatsalaya 2021년 2월 25일
thank you
could you pls also help me in labeling these separetly.
using the first them plots them together as the same data and i cant label them separately.
thanks in advance

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by