MATLAB stem function error

1 次查看(过去 30 天)
Ruturajsinh Jadeja
Ruturajsinh Jadeja 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