MATLAB stem function error

6 visualizaciones (últimos 30 días)
Ruturajsinh Jadeja
Ruturajsinh Jadeja el 16 de En. de 2021
Respondida: Star Strider el 16 de En. de 2021
Whenever I run any program which includes stem function I got this error and it never plot the graph.
  1 comentario
Image Analyst
Image Analyst el 16 de En. de 2021
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.

Iniciar sesión para comentar.

Respuestas (1)

Star Strider
Star Strider el 16 de En. de 2021
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)
.

Categorías

Más información sobre Platform and License en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by