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:
But I got an error, and the course marks it as incorrect. I also tried:
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!