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),:));

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 28 Jul. 2014

0 Stimmen

Use stem function instead of plot

5 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 28 Jul. 2014

Bearbeitet:

am 28 Jul. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by