본문으로 건너뛰기
cccskills
무료GitHub에 공개

matlab-create-hands-on-exercises

Use when prompting a learner to complete hands-on MATLAB coding exercises, guided practice, debugging drills, code tracing, small MATLAB projects, or MATLAB-script assessment during tutoring. Use when the tutor should create a complete runnable MATLAB script, execute it through MATLAB tools, compare the produced outputs with expected outputs, and evaluate MATLAB programming style.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(4)

  • SKILL.md4.9 KB
  • references/execution-safety.md3.6 KB
  • references/exercise-patterns.md3.5 KB
  • references/script-assessment-patterns.md6.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

MATLAB Hands-On Exercises

Purpose

Guide learners through active MATLAB practice. Exercises must be complete, runnable MATLAB scripts when assessment is involved, and the tutor must execute those scripts through MATLAB tools before judging correctness.

The goal is to provide MATLAB Grader-style formative assessment without requiring MATLAB Grader: create an exercise, run the learner's code in MATLAB, compare script outputs against expected values, inspect programming style with Code Analyzer in MATLAB, and give targeted feedback.

For instructors, this skill turns tutoring into a small formative assessment. Students still receive coaching, but the tutor also checks whether the code actually runs and whether the produced outputs match the learning objective.

Exercise Loop

  1. State the goal in one sentence.
  2. Define expected outputs and assessment criteria before the learner starts.
  3. Give a complete script scaffold with a clearly marked learner section.
  4. Ask the learner to predict, fill in, or revise the learner section.
  5. Save the complete script as a temporary .m file.
  6. Apply the execution preflight in references/execution-safety.md, which includes running check_matlab_code; do not run it a second time.
  7. Run run_matlab_file on the script and inspect the MATLAB output.
  8. Compare produced variables, values, sizes, classes, errors, and required or forbidden functions against the assessment criteria.
  9. Give targeted feedback and one extension or revision prompt.

Never mark an assessable exercise correct from visual inspection alone. If the exercise has expected output, run the complete script in MATLAB and evaluate the actual output.

Exercise Types

  • Trace: Predict workspace variables after each line.
  • Edit: Modify a snippet to meet a requirement.
  • Debug: Diagnose an error message and fix the root cause.
  • Refactor: Replace fragile or verbose code with clearer MATLAB.
  • Test: Write a matlab.unittest test for a function.
  • Analyze: Import or summarize a tiny dataset.
  • Visualize: Create or improve a plot.

Use the shortest exercise that can reveal the misconception. A five-line script that exposes row-versus-column behavior is often more useful than a large project when the goal is concept formation.

Starter Exercise Pattern

Read references/exercise-patterns.md for reusable exercise formats.

Read references/script-assessment-patterns.md when creating a complete runnable script, output checks, MATLAB Grader-style assessments, tolerance-based comparisons, or Code Analyzer feedback.

Read references/execution-safety.md before running learner-provided or generated MATLAB scripts.

Safety and Academic Integrity

  • For homework-like prompts, ask for the learner's attempt first.
  • Treat learner code as untrusted input. Perform the execution safety preflight before running scripts.
  • Do not run large or destructive code. Keep practice files small and temporary.
  • Always explain what MATLAB script was run, which checks passed or failed, and what the output means.
  • Avoid file I/O, network calls, delete, rmdir, shell commands, or long simulations unless the learner's explicit task requires them and the path is temporary and scoped.

Feedback

Feedback should be specific:

  • Identify the MATLAB rule involved.
  • Point to the exact expression or line.
  • Report the relevant MATLAB output, variable value, size, class, error, or Code Analyzer message.
  • Explain how to inspect evidence next time.
  • Give one revised attempt or next prompt.

Assessment Policy

Assess scripts with the same broad categories MATLAB Grader uses for script assessment:

  • expected variable exists;
  • expected variable has the right class, size, and value;
  • numeric values are compared with an explicit tolerance;
  • required functions or keywords are present when the learning objective calls for them;
  • prohibited functions or shortcuts are absent when the exercise is about a specific programming concept;
  • custom checks verify plots, tables, errors, or edge cases when variable equality is insufficient.

For course pilots, make the expected output explicit before the learner starts. This helps instructors compare student attempts, AI feedback, and MATLAB execution evidence.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use this skill when the user wants to author, design, scope, or refine an Agent Skill (a SKILL.md file). Trigger phrases include "build a new skill", "design an agent skill", "scope a SKILL.md", "how should I structure this skill", "write a skill for X", "my skill isn't working well", or any request to improve an existing SKILL.md. Walks the user through an empirical, test-first process — probe the agent for real failures, design only for genuine knowledge gaps, iterate against runnable examples, and verify across models.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matlab/agent-skills-playground1892026년 10월 15일 업데이트

Deploy AI models to embedded hardware using MathWorks tools (MATLAB, Simulink, Embedded Coder). Covers two workflow patterns: (1) MathWorks-native or 3P-imported models rebuilt as dlnetwork for lean hardware (Cortex-M, DSP), (2) direct C/C++ code generation from PyTorch and LiteRT models for high-performance hardware (Cortex-A, x86, GPU). Trigger when: user wants to deploy AI to embedded targets; generate C/CUDA from neural networks; compress AI models for MCU/DSP; integrate AI in Simulink for system-level simulation; import PyTorch/ONNX/TensorFlow models for embedded deployment; optimize AI for resource-constrained hardware; or use loadPyTorchExportedProgram, importNetworkFromPyTorch, dlquantizer, exportNetworkToSimulink, or Embedded Coder with AI models.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matlab/agent-skills-playground1892026년 10월 15일 업데이트

Use when a learner asks for help with MATLAB homework, labs, projects, graded assignments, take-home exams, quizzes, or any programming task where academic integrity, course policy, or instructor constraints may limit direct solutions. Use to provide policy-aware hints, conceptual coaching, partial feedback, and assignment-safe MATLAB tutoring.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matlab/agent-skills-playground1892026년 10월 15일 업데이트

Use when tutoring a learner through MATLAB debugging, error interpretation, failed tests, incorrect outputs, array-shape problems, indexing mistakes, function argument issues, or code repair practice. Use for guided debugging sessions, debugging drills, teach-the-agent critique, and evidence-based MATLAB troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matlab/agent-skills-playground1892026년 10월 15일 업데이트

Use when an AI tutor session concerns MATLAB programming concepts, MATLAB syntax, MATLAB errors, MATLAB code style, MATLAB projects, or MATLAB toolbox workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matlab/agent-skills-playground1892026년 10월 15일 업데이트

Use when an instructor wants to create, interview for, configure, install, update, or review a course AI-use policy for MATLAB AI tutoring. Produces an AI-POLICY.md file for LMS sharing and local tutoring-session enforcement by assignment guardrails.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matlab/agent-skills-playground1892026년 10월 15일 업데이트

matlab의 스킬 모두 보기

이 스킬의 문제 신고