# How to run script file in PLECS without using MATLAB?

**URL:** <https://forum.plexim.com/t/how-to-run-script-file-in-plecs-without-using-matlab/683>\
**Category:** PLECS\
**Tags:** script, code, coding-in-plecs\
**Created:** [August 14, 2019, 1:17am UTC](https://forum.plexim.com/t/how-to-run-script-file-in-plecs-without-using-matlab/683 "2019-08-14T01:17:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![malepatisankar](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@malepatisankar](https://forum.plexim.com/u/malepatisankar)\
**Post date:** [August 14, 2019, 1:17am UTC](https://forum.plexim.com/t/how-to-run-script-file-in-plecs-without-using-matlab/683/1 "2019-08-14T01:17:56Z")

</div>

I have only PLECS in my PC. How to run any script files in PLECS like I do in MATLAB?

---

<div class="post-metadata">

**Author:** ![Kris\_Eberle](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/kris_eberle/32/6_2.png) [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)\
**Post date:** [August 14, 2019, 2:18pm UTC](https://forum.plexim.com/t/how-to-run-script-file-in-plecs-without-using-matlab/683/2 "2019-08-14T14:18:07Z")

</div>

Hello,

I assume you mean PLECS Standalone when you said you only have PLECS? But anyway, we recommend the PLECS User Manual, available on our website at [www.plexim.com/download/documentation](http://www.plexim.com/download/documentation), or the built-in Online Help as a resource for many questions on using the tool. In the Initialization Parameters window of the Simulation Parameters window in PLECS Standalone you can enter any valid MATLAB/Octave expression, consisting of MATLAB/Octave functions, operators, and variables. So this can directly be a code that is run to initialize variables, or you can reference by name an m file that sits in the same directory as the model. If you want to run multiple situations or start and modify a simulation or analysis, for example, there is both an internal scripting environment in PLECS Standalone, and a method for externally controlling PLECS Standalone. Both options are described in Chapter 10 “Simulation Scripts”. Please let me know if you have further questions.

Regards,

Kris
