Hello I have a set of values.
X and Y values
I want to draw each value as a single , separate line from 0 to Y intensity in X position for each Y value.
I tried to use line but this function connect lines.
line([setX,setX],[zeros(size(peaks)) peaks])
Where setX is a vector with X axis peaks is a vector with Y axis
I want to have eg. 100 vertical lines not connected.

 채택된 답변

Inge
Inge 2013년 10월 7일

0 개 추천

I think you can solve the problem with function STEM: click

추가 답변 (0개)

카테고리

태그

질문:

2013년 10월 7일

답변:

2013년 10월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by