agentsclimarketplace

Matlab sliding window fft frequency analysis with range constrai

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/matlab-sliding-window-fft-frequency-analysis-with-range-constrai

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

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

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

2.2 KB, 325 tokens by cl100k_base, as published. Nobody here has run it

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.