How do I generate a nano second rectangular pulse function in Matlab (Using 'rectpuls()')?

6 vues (au cours des 30 derniers jours)
Meghanad Kayanattil
Meghanad Kayanattil le 26 Jan 2016
Commenté : Rik le 31 Jan 2021
When I am plotting this from t=0 to t=10^-6 the program is not running.
t = 0 : 1/1e6 ; 1;
w = 0: 1/1e9 : 1;
pulse = rectpuls(t,w);
x = 0:1/1e-3:1;
plot(x,pulse)

Réponses (1)

Walter Roberson
Walter Roberson le 26 Jan 2016
w, the width, is expected to be a scalar for rectpuls

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by