Skip to content

Check MATLAB version ≥ R2024b before calling refinepeaks in pulsedetection.m #11

@dcajal

Description

@dcajal

The function refinepeaks is used in pulsedetection.m, but this function was only introduced in MATLAB R2024b.

Currently, if a user runs the code with an older MATLAB release, it will throw an error since refinepeaksis not available.

Proposed solution:

Add a version check before calling refinepeaks. If MATLAB is older than R2025a, either:

  • Provide a fallback implementation
  • Display a clear error message indicating the required MATLAB version.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions