agentsclimarketplace

Matlab matrix reshaping and peak analysis

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/matlab-matrix-reshaping-and-peak-analysis

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

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

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

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.

SKILL.md

1.9 KB, 300 tokens by cl100k_base, as published. Nobody here has run it

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

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.