Borrar filtros
Borrar filtros

how to plot the signal with timesteps

1 visualización (últimos 30 días)
Elysi Cochin
Elysi Cochin el 6 de Mzo. de 2017
Respondida: KSSV el 6 de Mzo. de 2017
i have a signal value, of dimension 400 x 1.... how to plot the signal with timesteps of 7 microseconds....

Respuesta aceptada

KSSV
KSSV el 6 de Mzo. de 2017
N = 400 ;
signal = rand(N,1) ; % a random signal
dt = 10^-6 ; % time step
t = zeros(N,1) ; % initilaize time
t(1) = 0 ; % intial time = 0
% generate time
for i = 2:N
t(i) = t(i-1)+dt ;
end
plot(t,signal)

Más respuestas (0)

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by