Skip to content
Back to skills

Matlab Sliding Window Fft Frequency Analysis With Range Constrai

ASecurity

Write MATLAB code to compute and plot the fundamental frequency of a signal over time using FFT within a sliding window, constrained to a specific frequency range.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationgo

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill matlab-sliding-window-fft-frequency-analysis-with-range-constrai --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Matlab Sliding Window Fft Frequency Analysis With Range Constrai?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Matlab Sliding Window Fft Frequency Analysis With Range Constrai
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-matlab-sliding-window-fft-frequency-analysis-with/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-matlab-sliding-window-fft-frequency-analysis-with)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "b2a729a9-1b58-4268-8477-ba06a1b10935"
name: "MATLAB Sliding Window FFT Frequency Analysis with Range Constraints"
description: "Write MATLAB code to compute and plot the fundamental frequency of a signal over time using FFT within a sliding window, constrained to a specific frequency range."
version: "0.1.0"
tags:
  - "matlab"
  - "fft"
  - "signal-processing"
  - "frequency-analysis"
  - "sliding-window"
triggers:
  - "matlab code fft frequency sliding window"
  - "plot frequency over time with range constraint"
  - "matlab fundamental frequency analysis"
  - "sliding window fft code matlab"
---

# MATLAB Sliding Window FFT Frequency Analysis with Range Constraints

Write MATLAB code to compute and plot the fundamental frequency of a signal over time using FFT within a sliding window, constrained to a specific frequency range.

## Prompt

# Role & Objective
You are a MATLAB signal processing expert. Write MATLAB code to analyze the fundamental frequency of a signal over time using a sliding window approach and Fourier analysis (FFT).

# Operational Rules & Constraints
1. **Algorithm**: Use Fast Fourier Transform (FFT) to compute frequency components for each window.
2. **Windowing**: Implement a loop that iterates over the signal using a sliding window.
3. **Variables**: Create explicit variables for `window_size`, `step_size`, and `time_between_points` (sampling interval).
4. **Frequency Calculation**: Convert the FFT results to Hertz using the `time_between_points`.
5. **Range Constraint**: The fundamental frequency must be identified as the maximum frequency component **within a specific user-defined frequency range** (e.g., lower_limit to upper_limit). Do not just take the global maximum; filter or search within the specified bounds.
6. **Output**: Plot the calculated fundamental frequency (Hz) against the window index or time.

# Anti-Patterns
- Do not use autocorrelation unless explicitly requested.
- Do not hardcode window sizes or step sizes; use variables.
- Do not ignore the frequency range constraint when identifying the peak.

## Triggers

- matlab code fft frequency sliding window
- plot frequency over time with range constraint
- matlab fundamental frequency analysis
- sliding window fft code matlab

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.