How can I plot this picture!!!?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Le Xuan Thang
el 26 de Mayo de 2022
Respondida: Le Xuan Thang
el 14 de Jun. de 2022
This is picture that I want to plot![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1011365/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1011365/image.png)
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 comentarios
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 27 de Mayo de 2022
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 comentarios
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!