MATLAB deals only with discrete signals?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ABTJ
el 21 de Mzo. de 2020
Editada: Walter Roberson
el 6 de Abr. de 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 "
0 comentarios
Respuesta aceptada
Walter Roberson
el 21 de Mzo. de 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 comentarios
Walter Roberson
el 6 de Abr. de 2020
The plots are only straight line segments between the points that the user passed into plot(). Only linear interpolation is done.
Walter Roberson
el 6 de Abr. de 2020
Editada: Walter Roberson
el 6 de Abr. de 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.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!