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.

PLECS Blockset installation problem - undefined function or variable 'plecslib'

+1 vote
124 views

Dear Sir,

I have installed PLECS Blockset in the PC with Windows10 Operating system. I have used the trial license.lic file when license file was asked during installation. After installing, I have started MATLAB 2015a and typed plecslib in the command window of MATLAB. 

The following error message came: Undefined function or variable 'plecslib'. 

The MATLAB library does not contain any Plecs blocks in it.

How to solve this license issue?

Regards,

 

Roy Francis

 

asked Jan 27 by royaf (26 points)

1 Answer

+2 votes
 
Best answer
Hi Roy,

This error typically occurs if your MATLAB paths weren't properly set. When you installed PLECS Blockset, the installation wizard had you create a startup.m file (at 3:03 of the below video). This file is made to be initialized every time you boot MATLAB and, thus, let your MATLAB add the necessary PLECS and PLECS/demos folders to its path for you automatically. This will only happen, however, if the location of this startup.m file (the default is [your username]/Documents/MATLAB/) is also listed in your MATLAB path. Please verify that all three of these paths highlighted in this installation video are present in your "Set Path" window within MATLAB: http://plexim.com/support/videos/installing-blockset-win. If your startup.m file was properly created and pointed to within MATLAB paths, you should get the PLECS and PLECS/demos paths added automatically upon MATLAB reboot. If you need to start the PLECS installation wizard manually for any reason, you may do so via a shortcut in the "PLECS Blockset" folder.

Regards,

Vitalik
answered Jan 29 by Vitalik Ablaev (28 points)
selected Jan 30 by royaf
Dear Vitalik,

Thanks for the reply. The MATLAB Path now corrected and the problem solved.

Thanks & Regards,

Roy Francis
...