Spectral Analysis Techniques Course _ Issue plotting a window created with Window Designer in MATLAB

1 visualización (últimos 30 días)
Hi everyone,
I'm working on the "Spectral Analysis Techniques" course on MathWorks, and I'm stuck on Task 1 of the "Create and Apply Windows" activity.
I followed the instructions to create a rectangular window using Window Designer, set the length to 2400, and saved it with the name w.
Now, the task says:
"Enter the command for plotting the window created in task 1. Plot w versus t."
I tried the following command:
plot(w, t)
But I got an error, and the course marks it as incorrect. I also tried:
plot(0:length(w)-1, w)
But that didn’t work either in the course platform.
It says:
❌ Is the x-axis data correct?
❌ Is the y-axis data correct?
Can anyone explain the correct way to plot the window in this case? I just want to display the rectangular window correctly in the time domain.
Thanks in advance for your help!

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 3 de Mayo de 2025
Editada: Cris LaPierre el 3 de Mayo de 2025
There seems to be a bug with this task. Please report this directly to MathWorks here: https://www.mathworks.com/support/contact_us.html
You need to make some changes to the script in order to pass.
  1. w should be defined by Window Designer, not the code. Delete this line of code in the Task 1 section: w=ones(n,1)
  2. The assessment is looking at the wrong figure. Comment out the code in the Task 2 section: periodogram(sig,w,2^12,fs);

Más respuestas (0)

Categorías

Más información sobre Data Exploration 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