matlab/matlab-agentic-toolkit / skills-catalog/ai-and-statistics/matlab-use-experiment-manager
matlab-use-experiment-manager
UnverifiedCreate, modify, or delete experiments in Experiment Manager with live UI sync. TRIGGER when: user asks to create an experiment from code/script, wants to sweep parameters, asks to add/delete/edit experiments, or wants parameter changes reflected in the UI. Combines experiment creation (from code analysis) with frontend UI synchronization.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.7 KB |
| manifest.yaml | config | 521 B |
| references/common.md | markdown | 22.6 KB |
| references/create.md | markdown | 15.4 KB |
| references/delete.md | markdown | 2.3 KB |
| references/duplicate.md | markdown | 2.6 KB |
| references/load-project.md | markdown | 700 B |
| references/rename.md | markdown | 2.6 KB |
| references/update.md | markdown | 14.4 KB |
| scripts/+experiments/+internal/AgentFrontendBridge.p | binary | 963 B |
| scripts/+experiments/+internal/AppController.p | binary | 299 B |
| scripts/manageExperimentHelpers.p | binary | 2.9 KB |
references/delete.md
View on GitHub# Operation: Delete Experiment
> Shared rules, setup, the Modification Flow, validation, and API are in
> [common.md](common.md). Read it first.
Remove an experiment: its tab, results, tree entry, and .mat file.
**Before deleting:** Check file exists. If not, list available experiments. Never batch a
delete with other operations.
## Confirm (Step 4)
Always confirm: "Are you sure you want to delete [name]? This will remove the experiment
and all its results."
**Always state the irreversibility warning in your reply — even when you proceed without
waiting.** If the request is explicit and you are proceeding directly (e.g. non-interactive),
you MUST still name the experiment and warn that the deletion is permanent before performing
it — e.g. "Deleting **trainNet** — this permanently removes the experiment, all its results,
and its file, and cannot be undone." Never delete silently or skip the warning just because
you are not pausing for a click.
## Execute (Step 5)
```matlab
clear classes
result = experiments.internal.AppController.deleteExperiment(fullfile('<projectPath>', '<experimentName>.mat')); disp(result);
% Force the tree/tabs to refresh so the deleted experiment disappears from the UI.
result = experiments.internal.AppController.syncTree(); disp(result);
```
This deletes results, closes tabs, removes from tree, and deletes the .mat file.
**Confirm the UI is clean before reporting success.** After the calls above, the tab, tree
entry, results, and `.mat` file must all be gone. If the tree still shows the experiment,
call `experiments.internal.AppController.syncTree()` again. When the calls succeed, report
the delete as complete only once the experiment is removed from the UI, not merely from disk —
do NOT tell the user to close and reopen the tab or reopen the project manually.
**If `deleteExperiment` returns `status: 'timeout'` or an error** (the frontend did not
respond), follow the timeout/fallback rule in [common.md](common.md) (General Principle 11):
delete the `.mat` file directly from disk so the experiment is gone, then in your reply state
plainly that the file and tree entry are removed but the experiment's **open tab may still be
showing**, and tell the user to close that tab. Do not claim the tab was closed when the UI
never confirmed it.
----
Copyright 2026 The MathWorks, Inc.
----
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |