Clear Filters
Clear Filters

MATLAB deals only with discrete signals?

4 views (last 30 days)
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 "

Accepted Answer

Walter Roberson
Walter Roberson on 21 Mar 2020
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 Comments
Walter Roberson
Walter Roberson on 6 Apr 2020
The plots are only straight line segments between the points that the user passed into plot(). Only linear interpolation is done.
Walter Roberson
Walter Roberson on 6 Apr 2020
Edited: Walter Roberson on 6 Apr 2020
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.

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products


Release

R2015a

Community Treasure Hunt

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

Start Hunting!