MATLAB deals only with discrete signals?
8 次查看(过去 30 天)
显示 更早的评论
I was reading the book "signal processing first" by Mcclellan
I came across article 2.4 (sampling and plotting sinusoids)
Where i read a statement in third line of article. Statement was: " MATLAB deals only with discrete signal" What does that mean?
Can't we use MATLAB for continuous time signals? If not, then what is happening in case of plot(command used to draw graph of continuous time signals)
Does matlab uses interpolation technique then in case of 'plot', since neither computer nor matlab can directly handle continuous time signals as discussed earlier?
Below is a link of Stack overflow question,that also discusses something same
I have also attached a snapshot of wikipedia "polynomial interpolation "
0 个评论
采纳的回答
Walter Roberson
2020-3-21
MATLAB operates on digital computers in which all instructions and signals are represented as finite-length binary data: discrete data being operated on by discrete circuits.
Continuous-time signals and analog signals require -- the infinity of the real numbers -- not finite length signals.
You can model continuous-time signals, but you cannot represent them directly or store them. Simulink in particular is well adapted to model continuous-time signals.
6 个评论
Walter Roberson
2020-4-6
The plots are only straight line segments between the points that the user passed into plot(). Only linear interpolation is done.
Walter Roberson
2020-4-6
编辑:Walter Roberson
2020-4-6
There some curve drawing operations in MATLAB, such as rectangle(), viscircles() and some of the annotation() requests. MATLAB does not create curve primitives to send to the system graphics for those: instead it approximates the curve internally as a number of straight line segments and sends the straight lines to the system graphics. Typically the result will look like a smooth curve, but if you zoom in enough you can see the straight lines.
I am not sure at the moment how text is implemented.
Markers have mixed implementation. It turns out that most markers are implemented by straight line approximation but a small number are implemented as graphic primitive requests to the system graphics.
Anything based on line drawing in 2d is handled by straight line approximation.
Anything about surfaces in 3d is handled by sending vertex coordinates to the system graphics to handle perspective and fill and alpha blending. But the coordinates sent are based on straight line approximation.
The only true curve primitive that matlab ever sends to the system graphics (at least that I can think of) is potentially text.
Even for things like spline curves, even when system graphics support sending control point coordinates, matlab does straight line approximation and sends the vertices to have straight lines drawn between them.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!