Borrar filtros
Borrar filtros

Synthesizing signal given expression

2 visualizaciones (últimos 30 días)
Jonathan George
Jonathan George el 30 de Abr. de 2022
Comentada: Jonathan George el 30 de Abr. de 2022
Would would one go about synthesizing a discrete representation of a signal given by the expression x(t)=9cos(421t + 1.99) for 0<=t<=2 using a sampling rate of 874Hz with the first sample located at t=0?

Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Abr. de 2022
First create a vector of times in t. Then
x = 9 * cos(421*t + 1.99);
stem(t, x)
  3 comentarios
Walter Roberson
Walter Roberson el 30 de Abr. de 2022
The times in the vector are (1 / sampling rate) seconds apart.
But sometimes it is easier to figure out how many total samples you are dealing with, generate integers 0 to one less than that many, and then divide those integers by the sampling rate. (0:5)/874 for example
Jonathan George
Jonathan George el 30 de Abr. de 2022
Oh, I see. Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Measurements and Feature Extraction en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by