Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1995
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: stem function of Matlab?

  • To: mathgroup at christensen.cybernetics.net
  • Subject: [mg473] Re: [mg462] Re: [mg454] stem function of Matlab?
  • From: bakshee (Igor Bakshee)
  • Date: Tue, 14 Feb 1995 16:25:08 -0600

Michael Trott (mtrott at wri.com) correctly points me out that

dropLineMT[{x_,y_}]=Line[{{x,0},{x,y}}]

is faster than the corresponding function in my posting.  The improved code
therefore should be as follows:

dropLineMT[{x_,y_}]=Line[{{x,0},{x,y}}];
DiscretePlot[args__] := Block[{$DisplayFunction = Identity},
	ListPlot[args, PlotJoined->False] /.
		Point[point_] :> {Point[point],dropLineMT[point]}
] //Show

(* example *)
DiscretePlot[Range[10]-5,PlotStyle->PointSize[.02]]

Any more improvements?

Igor Bakshee


>>I want to use a function like 'stem' function in Matlab to plot discrete
>>
>>sequence data.




  • Prev by Date: Batch jobs
  • Next by Date: Re: Help !!!!
  • Previous by thread: Re: stem function of Matlab?
  • Next by thread: Formatting problem