Skip to content

VeriQAi/MatlabGraderProblemGenerator

Repository files navigation

MATLAB Grader Problem Generator

AI-assisted MATLAB Grader problem authoring tool by VeriQAI.

MATLAB and MATLAB Grader are trademarks of The MathWorks, Inc. This tool is not affiliated with or endorsed by MathWorks.


Usage

Option A — Deployed app (recommended)

Open https://veriqai.github.io/MatlabGraderProblemGenerator/ in Chrome or Edge.

Option B — Run locally

git clone https://github.com/VeriQAi/MatlabGraderProblemGenerator.git
cd MatlabGraderProblemGenerator
npm install
npm run dev
# → http://localhost:3002/MatlabGraderProblemGenerator/

Workflow

  1. Enter your Anthropic API key — sign up, purchase API credits, and create a dedicated key with a spending limit at console.anthropic.com before use.
  2. Select a Claude model (Sonnet 4.6 recommended).
  3. Enter a learning objective and choose Script or Function problem type.
  4. Accept the usage conditions.
  5. Click Generate 5 Problem Options and select the ones you want to develop.
  6. Each selected problem is developed into 4 artifacts — review each one, then download.

What gets generated

For each selected problem:

File Paste into MATLAB Grader
*_description.txt Problem Description tab
solution.m Reference Solution tab
template.m Learner Template tab
all_tests.m Each % === TEST N === section → separate Test Case

Test cases are written for R2025b (double-quoted assessPattern strings).


API Key & Privacy

  • Your API key is used only in your browser session and sent only to api.anthropic.com.
  • It is never stored, logged, or persisted anywhere — gone on page refresh.
  • A Content Security Policy (connect-src https://api.anthropic.com) restricts all network calls to Anthropic's API only.

Cost

API usage is very low. Generating and fully developing 4 problems (approx. 20 API calls) costs around $0.05–$0.10 with Claude Sonnet 4.6. A $5 spending limit is more than enough for extensive use.

Sign up, purchase credits, and create a key at console.anthropic.com.


Deployment

npm run deploy      # builds and pushes to gh-pages branch
git push origin main

Disclaimer

Generated content is produced by an AI model and must be reviewed before use in any assessment context. This tool is provided "as is" under the MIT licence without warranty of any kind. VeriQAI accepts no liability for inaccurate, incomplete, or harmful content.

Built With

React, Vite, Tailwind CSS, JSZip, Lucide, and the Anthropic SDK.

License

MIT — VeriQAI

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors