MATLAB deals only with discrete signals?

6 Ansichten (letzte 30 Tage)
ABTJ
ABTJ am 21 Mär. 2020
Bearbeitet: Walter Roberson am 6 Apr. 2020
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 "

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 21 Mär. 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 Kommentare
Walter Roberson
Walter Roberson am 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 am 6 Apr. 2020
Bearbeitet: Walter Roberson am 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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by