← ClaudeAtlas

matlab-create-hands-on-exerciseslisted

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.
matlab/agent-skills-playground · ★ 176 · AI & Automation · score 80
Install: claude install-skill matlab/agent-skills-playground
# 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](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