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');
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 28 日
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 ExchangeMATLAB についてさらに検索

製品

質問済み:

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