matlab-configure-scope-object

Configure scope block and object properties using documented MATLAB and Simulink APIs.

995|122|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-configure-scope-object
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-configure-scope-object
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/signal-processing/matlab-configure-scope-object
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-configure-scope-object

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI agents often escalate into internal scope framework objects (such as the Simulink.scopes namespace) when configuring scope properties, which crashes MATLAB with no recovery. This Skill constrains the agent to documented public APIs so scope configuration is safe and predictable.

Core Features & Use Cases

  • Safe property configuration: Sets properties on Simulink scope blocks via get_param/set_param and the ScopeConfiguration object, and on MATLAB scope objects via public properties.
  • Property discovery and validation: Uses properties(...) to confirm a target property exists before attempting to set it, mapping user descriptions to the closest matching property name.
  • Structured error handling: Handles locked objects with release(), permits one retry for format or access-method mismatches, and directs users to the scope UI when a property is not programmatically accessible.
  • Use Case: When asked to change the time span of a Time Scope block in a Simulink model, the agent retrieves the ScopeConfiguration object, verifies the property exists, sets it through the documented API, and stops with a clear message if the property is UI-only.

Quick Start

Configure the Time Span property of the Time Scope block in my Simulink model using only documented scope APIs.

Frequently Asked Questions about matlab-configure-scope-object

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Simulink scope block properties programmatically?

Get the documented configuration object with get_param('model/Scope', 'ScopeConfiguration'), list available properties with properties(scopeConfig), then set confirmed public properties directly. You can also use get_param/set_param with documented parameter names as an alternative access method.

How do I change properties on a MATLAB timescope or spectrumAnalyzer object?

List public properties with properties(scopeObj), confirm the target property exists, then assign it directly, for example scopeObj.PropertyName = newValue. If the object is locked, call release(scopeObj) before setting non-tunable properties.

Why does accessing Simulink.scopes internal objects crash MATLAB?

Scope blocks use web-based viewers backed by internal framework objects managing graphics pipelines and shared state. Accessing these internals outside their intended lifecycle crashes MATLAB with no recovery, so only the documented ScopeConfiguration API and public object properties are safe.

What happens when a scope property is not programmatically accessible?

If properties(...) does not list the target property, programmatic access is not supported. The property may be configurable only through the scope UI, so open the scope window and use its configuration panels instead of attempting deeper access.

Why does setting a scope property fail with a non-tunable error?

The error occurs because the MATLAB System object is locked after simulation or a step call. Call release(scopeObj) to unlock it, set the property, and the object will re-lock on the next step call.