# \#workspace

**URL:** https://forum.plexim.com/tag/workspace/321.md

[Latest](https://forum.plexim.com/latest.md) · [Categories](https://forum.plexim.com/categories.md) · [Tags](https://forum.plexim.com/tags.md)

---

## [Parameterize function-block via m-File](https://forum.plexim.com/t/parameterize-function-block-via-m-file/1196)

<div class="topic-metadata">

**Author:** [@utuber27](https://forum.plexim.com/u/utuber27)\
**Replies:** 1\
**Last updated:** [January 3, 2023, 3:09pm UTC](https://forum.plexim.com/t/parameterize-function-block-via-m-file/1196 "2023-01-03T15:09:32Z")

</div>

Hi, I use a m-File to write a function in the function-block in PLECS. The input variable of the function has to be a value that is recalculated in each simulation-step in PLECS. The problem is that I need to have this …

---

## [Change Workspace of PLECS when called inside a MATLAB function](https://forum.plexim.com/t/change-workspace-of-plecs-when-called-inside-a-matlab-function/763)

<div class="topic-metadata">

**Author:** [@JanLafrenz](https://forum.plexim.com/u/JanLafrenz)\
**Replies:** 3\
**Last updated:** [June 23, 2020, 11:58pm UTC](https://forum.plexim.com/t/change-workspace-of-plecs-when-called-inside-a-matlab-function/763 "2020-06-23T23:58:00Z")

</div>

Dear all, I want to call a Simulink model with PLECS inside a function. I was able to set the workspace for the Simulink model to the local-function workspace. However, i can not change it for PLECS. PLECS still need th…
