# Command-Based Access to SPS Software Examples

**URL:** <https://community.opal-rt.com/t/command-based-access-to-sps-software-examples/53>\
**Category:** Tutorials\
**Tags:** sps-software\
**Created:** [March 16, 2026, 5:51pm UTC](https://community.opal-rt.com/t/command-based-access-to-sps-software-examples/53 "2026-03-16T17:51:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeylaErdan](https://avatars.discourse-cdn.com/v4/letter/l/aeb1de/32.png) [@LeylaErdan](https://community.opal-rt.com/u/LeylaErdan)\
**Post date:** [March 16, 2026, 5:51pm UTC](https://community.opal-rt.com/t/command-based-access-to-sps-software-examples/53/1 "2026-03-16T17:51:53Z")

</div>

> Command-Based Access to SPS Software Examples 🚀

Finding the right example model in SPS Software is now faster than ever! SPS Software provides a lightweight API to make exploring and opening example models seamless directly from the MATLAB® Command Window.

This command-based approach makes examples:

- **Easy to discover:** Browseable by category with tab completion.
- **Fast to open:** One command, no menus required.
- **Consistent:** The same commands work across all example families.

Here is a quick guide on how to navigate the SPS Software example library like a pro.

* * *

### 🗂 1. Browsing Examples by Category

SPS Software examples are exposed through the `sps.Examples` namespace. To see what is available, start typing and use the `TAB` key for auto-completion.

Type this in the Command Window and press `TAB`:

```matlab
sps.Examples.

```

MATLAB will list all available categories, such as `Analysis`, `Intro`, `Machines`, `PowerConverters`, and `Renewables`.

You can keep digging. To see all analysis-related examples, type:

```matlab
sps.Examples.Analysis.

```

And press `TAB` again.

* * *

### 📂 2. Opening an Example Model

Once you find the example you want, use the `open` command.

```matlab
% Format: open(sps.Examples.<Category>.<ExampleName>)
open(sps.Examples.Analysis.IEEE13NodeTestFeederExample)

```

This command instantly opens the associated Simulink model.

* * *

### 📖 3. Accessing the Documentation

Most examples include a dedicated documentation page explaining the theory and usage.

To open the documentation for a specific example, use the `doc` command:

```matlab
doc(sps.Examples.Analysis.LoadFlow5BusNetworkExample)

```

**Lost the Example Name? Use the Model Name!**  
If you know the `.slx` file name (e.g., from an error message) but don’t know the exact category or example name, you can open its documentation directly:

```matlab
sps.Catalog.openDocByModel("power_AveragedPulses.slx")

```

Want to see the entire library? Open the main SPS Software Example Models documentation page in your browser with:

```matlab
sps.Examples.docHome

```

* * *

### 🔍 4. Listing and Searching

Don’t want to use tab completion? You can list and search the entire catalog.

**List all examples in a specific category:**

```matlab
sps.Catalog.list("Analysis")

```

This returns a clean table showing the Example Name, Model File, and Title.

**Search by keyword:**  
Looking for something specific, like average models? The `search` command checks categories, example names, and titles for your keyword.

```matlab
sps.Catalog.search("average")

```

* * *

_Speed up your workflow and explore the powerful benchmark models SPS Software has to offer!_
