Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

Obtain PLECS parameter initial values from a .m file

0 votes
What would be the easiest way to obtain the values for initializing the parameters from a .m File.
asked Jul 4 by Anjana (17 points)

1 Answer

0 votes

You can use the run("file_name") or source("file_name") Octave functions in the Model Initialization Commands.

answered Jul 5 by Bryan Lieblick (1,187 points)

What should be the file type of "file_name".

Refer to the Octave help for these two functions.

The exact extension doesn't matter, but the file search behavior will vary slightly depending on the extension.  A very simple example is attached.  Place the two files in the same folder.