MATLAB stem function error

조회 수: 2 (최근 30일)
Ruturajsinh Jadeja
Ruturajsinh Jadeja 2021년 1월 16일
답변: Star Strider 2021년 1월 16일
Whenever I run any program which includes stem function I got this error and it never plot the graph.
  댓글 수: 1
Image Analyst
Image Analyst 2021년 1월 16일
Like I just told someone else a minute ago:
I don't know. MATLAB cannot convert your image into code. Attach your code so we can run it. Make it easy to help you not hard.

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2021년 1월 16일
Either just use ‘z1’, or use a ‘shape’ argument with conv:
n = -15:15;
u = n>=0;
u1 = n>= 4;
f = u-u1;
z1 = conv(f,f,'same');
figure
stem(n, z1)
.

카테고리

Help CenterFile Exchange에서 Platform and License에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by