Convert analog to digital

4 views (last 30 days)
Mrinal
Mrinal on 28 Jul 2014
Edited: Mrinal on 28 Jul 2014
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),:));

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 28 Jul 2014
Use stem function instead of plot
  5 Comments
Azzi Abdelmalek
Azzi Abdelmalek on 28 Jul 2014
Like this?
y=sin(1:10);stem(y,'.')
Mrinal
Mrinal on 28 Jul 2014
Edited: Mrinal on 28 Jul 2014
thnx again for the answer, but i am using
set (s,'Marker','None');

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!