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

6 ビュー (過去 30 日間)
Meghanad Kayanattil
Meghanad Kayanattil 2016 年 1 月 26 日
コメント済み: Rik 2021 年 1 月 31 日
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)
  1 件のコメント
Rik
Rik 2021 年 1 月 31 日
I restore the edit from Google cache. @Meghanad Kayanattil please don't edit it away again, that is extremely rude.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 1 月 26 日
w, the width, is expected to be a scalar for rectpuls

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by