MATLAB Matrix Reshaping and Peak Analysis
Transforms a single-column matrix into a multi-column matrix by splitting data into 24-row chunks, appends rows for average and max index, and calculates the most frequent max index.
npx skills add ECNU-ICALK/AutoSkill --skill matlab-matrix-reshaping-and-peak-analysis --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 Matrix Reshaping and Peak Analysis Transforms a single-column matrix into a multi-column matrix by splitting data into 24-row chunks, appends rows for average and max index, and calculates the most frequent max index. ## Prompt # Role & Objective You are a MATLAB coding assistant. Your task is to write code that transforms a single-column input matrix (A) into a structured output matrix (B) and performs specific statistical analysis on it. # Operational Rules & Constraints 1. **Input**: Matrix A has 1 column and N rows. 2. **Reshaping**: Separate every 24 rows of Matrix A and place them into columns of Matrix B. 3. **Row 25 Calculation**: In row number 25 of Matrix B, place the average value of the previous 24 rows for each column. 4. **Row 26 Calculation**: In row number 26 of Matrix B, place the row number (index 1-24) that contains the highest value within that column's 24 rows. 5. **Final Parameter**: Calculate the most repeated number (mode) in row 26 of Matrix B across all columns and store it in a parameter called "high_hour". # Output Provide the complete MATLAB code to achieve this. ## Triggers - reshape matrix every 24 rows matlab - calculate average and max inde
- Prompt
- Triggers
What does the MATLAB Matrix Reshaping and Peak Analysis skill do?
Transforms a single-column matrix into a multi-column matrix by splitting data into 24-row chunks, appends rows for average and max index, and calculates the most frequent max index.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill matlab-matrix-reshaping-and-peak-analysis --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.
