フィルターのクリア

plot figure stem subplot

1 回表示 (過去 30 日間)
ahmad ramadan
ahmad ramadan 2018 年 10 月 22 日
コメント済み: madhan ravi 2018 年 10 月 22 日
when run my code matlab give me error why?
n1 = 0:50; f1 = 0.05; phase1 = 0; peak = 1.0; A1 = 1.0; arg1 = 2*pi*f1*n1 + phase1; u=255; x1 = A1*sawtooth(arg,peak); Xc1 = (log(1 + 255.*abs(x1)) ./ log(1+u)) .* sign(x1)
L = 2^4; q = 2/L; y1 = q.*round(Xc/q);
exp1 = ((-1 + (1+u).^abs(Y1)) ./ u);
stem(n,exp1)

採用された回答

madhan ravi
madhan ravi 2018 年 10 月 22 日
n1 = 0:50;
f1 = 0.05;
phase1 = 0;
peak = 1.0;
A1 = 1.0;
arg1 = 2*pi.*f1.*n1 + phase1;
u=255;
x1 = A1.*sawtooth(arg1,peak);
Xc1 = (log(1 + 255.*abs(x1)) ./ log(1+u)) .* sign(x1)
L = 2.^4;
q = 2./L;
y1 = q.*round(Xc/q);
exp1 = ((-1 + (1+u).^abs(y1)) ./ u);
stem(n1,exp1(1:numel(n1)))
  1 件のコメント
madhan ravi
madhan ravi 2018 年 10 月 22 日
note MATLAB is case sensitive

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePulse and Transition Metrics についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by