I am plotting a signal with the following code. I want to convert this signal from analog to digital. Is there any way i can do it, i need to plot a straight line to x axis with each value which i am getting. Thank you in advance.
iSample = 1:iMaxSamples;
Value_AD_Value(iSample) = AD_Value_iAmplitude(iTimeIndex,iChannel,iSample); plot(handles.AD_Values,iSample,Value_AD_Value,'LineWidth',2,'Color',ColorSet(ColorArray(iChannel),:));

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 28일

0 개 추천

Use stem function instead of plot

댓글 수: 5

Mrinal
Mrinal 2014년 7월 28일
Thank you.
Mrinal
Mrinal 2014년 7월 28일
편집: Mrinal 2014년 7월 28일
Hello Azzi,
Is there a way to remove the circles terminating each stem ?
Mrinal
Mrinal 2014년 7월 28일
Got it using
set(s,'Marker','None');
Like this?
y=sin(1:10);stem(y,'.')
Mrinal
Mrinal 2014년 7월 28일
편집: Mrinal 2014년 7월 28일
thnx again for the answer, but i am using
set (s,'Marker','None');

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

질문:

2014년 7월 28일

편집:

2014년 7월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by