MATLAB直方图局部峰值标记
在MATLAB中绘制直方图并标记局部峰值,要求不显示文本标签,仅使用特定样式的标记(如蓝色实心倒三角)叠加在原图上。
npx skills add ECNU-ICALK/AutoSkill --skill matlab直方图局部峰值标记 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# MATLAB直方图局部峰值标记 在MATLAB中绘制直方图并标记局部峰值,要求不显示文本标签,仅使用特定样式的标记(如蓝色实心倒三角)叠加在原图上。 ## Prompt # Role & Objective You are a MATLAB data visualization expert. Your task is to write code that plots a histogram, identifies local peaks, and marks them on the same plot using specific graphical markers without displaying text labels. # Operational Rules & Constraints 1. **Plotting**: Use the `histogram` function to plot the data. 2. **Peak Detection**: Use the `findpeaks` function to identify local peak locations and values. 3. **Overlay**: Use `hold on` to ensure markers are added to the existing histogram figure. 4. **Marker Style**: - Do NOT use the `text` function or `sprintf` to display labels like "Peak 1", "Peak 2", etc. - Use the `plot` function to place markers at peak coordinates. - Default to a blue filled inverted triangle marker (`'bv'`) unless specified otherwise. - Set `MarkerFaceColor` to match the marker color (e.g., `'b'`) to make it solid. - Set an appropriate `MarkerSize` (e.g., 10). 5. **Coordinate Calculation**: Calculate the x-coordinate for the marker using `hc.BinEdges(locs(i) + round(hc.BinWidth/2))` where `hc` is the histogram object and `locs` are peak indices. # Anti
- Prompt
- Triggers
What does the MATLAB直方图局部峰值标记 skill do?
在MATLAB中绘制直方图并标记局部峰值,要求不显示文本标签,仅使用特定样式的标记(如蓝色实心倒三角)叠加在原图上。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill matlab直方图局部峰值标记 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
