how to plot such figure in MATLAB?

조회 수: 9 (최근 30일)
Assen Beshr
Assen Beshr 2023년 3월 27일
댓글: DGM 2023년 3월 27일
how to plot four line graph in one plane? data look like below.
PSO GWO PSOGWO SCA WOA
dg1V=[4.1072 4.1072 4.1163 4.1071 4.1072];
dg2V=[4.079 2.95 4.0841 4.0875 4.19];
dg3V=[2.1734 2.1856 2.1737 2.8233 2.1856];
dg4V=[2.1425 4.2595 2.1428 2.141 2.1532];
  댓글 수: 2
Dyuman Joshi
Dyuman Joshi 2023년 3월 27일
You want to plot an empty graph with labels on x-axis values?
DGM
DGM 2023년 3월 27일
If the x-data is (conceptually) categorical, then does it even make sense to use a line graph? Is it meaningful to represent interpolated values halfway between SCA and WOA? Only you know what your data means, but you might consider a bar chart or something. Either way, KSSV's answer would apply.

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

채택된 답변

KSSV
KSSV 2023년 3월 27일
Read about xticklabels

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by