Skip to content
Back to skills

Matlab Matrix Reshaping And Peak Analysis

ASecurity

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.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill matlab-matrix-reshaping-and-peak-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Matlab Matrix Reshaping And Peak Analysis?

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

Security grade badge for Matlab Matrix Reshaping And Peak Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-matlab-matrix-reshaping-and-peak-analysis/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-matlab-matrix-reshaping-and-peak-analysis)

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: "b46ddcdf-574d-49f5-bf3e-2934ab2680ad"
name: "MATLAB Matrix Reshaping and Peak Analysis"
description: "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."
version: "0.1.0"
tags:
  - "matlab"
  - "matrix"
  - "data processing"
  - "statistics"
  - "coding"
triggers:
  - "reshape matrix every 24 rows matlab"
  - "calculate average and max index in matlab matrix"
  - "find most repeated number in matrix row"
  - "matlab code for matrix transformation and statistics"
---

# 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 index in matlab matrix
- find most repeated number in matrix row
- matlab code for matrix transformation and statistics

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 ai-agents →

Comments

Loading comments…

Newsletter

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