필터 지우기
필터 지우기

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 CenterFile Exchange에서 Pulse and Transition Metrics에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by