How can I plot this picture!!!?

1 回表示 (過去 30 日間)
Le Xuan Thang
Le Xuan Thang 2022 年 5 月 26 日
回答済み: Le Xuan Thang 2022 年 6 月 14 日
This is picture that I want to plot
y label is value of variable x(i)
x label present the variable.( in this picture have 6 column so 6 variable you have)
and 0<x<1.
Every iteration pass this will plot the value of x(i)
Does matlab have any function to do this?
  2 件のコメント
KSSV
KSSV 2022 年 5 月 26 日
You can wirte a code for this and plot it. You need to use plot, text, line.
Le Xuan Thang
Le Xuan Thang 2022 年 5 月 27 日
I understand. How can I draw 6 column like picture? Suggest that each column was split into 10 pieces like: coumn 1. y1 = linspace(0,1,10).

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

採用された回答

Le Xuan Thang
Le Xuan Thang 2022 年 6 月 14 日
I find out that it very simple in matlab that you can plot it by parallel coordinates plot. Thank you all for answers my question

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 5 月 27 日
plot([x, x, repmat([x-delta,x+delta,nan],1,9)], [0, 1,.1,.1,nan,.2,.2,nan,.3,.3,nan,.4,.4,nan,.5,.5,nan,.6,.6,nan,.7,.7,nan,.8,.8,nan,.9,.9,nan])
where x is the x coordinate to draw the line, and delta is the distance before and after vertical line to draw each tick.
  2 件のコメント
Le Xuan Thang
Le Xuan Thang 2022 年 5 月 27 日
I try x = 1 and delta = 2
this is picture i got:
I seem not like picture in topic.
this is picture i get from my data. I need to draw 10 column like 6 column in picture of topic.
Maybe i do not understand your code. Can you give me example of this.
Walter Roberson
Walter Roberson 2022 年 5 月 27 日
delta should be about 1/20 or less

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

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by