I just installed R2018b with hardware support for the Raspberry Pi. When I try to use the deploy command as described under Started with Deploying a MATLAB Function on the Raspberry Pi Hardware", I this error:
Undefined function or variable 'deploy'.
Did this command not make it into R2018b?

 Accepted Answer

Robert Burkhardt
Robert Burkhardt on 3 Nov 2018

0 votes

After the steps I described above, uninstalling and reinstalling the package, the results of running the path command still contain these lines, as I specified before:
/Users/Robert/Documents/MATLAB/SupportPackages/R2018b/toolbox/realtime/targets/raspi /Users/Robert/Documents/MATLAB/SupportPackages/R2018b/toolbox/realtime/targets/raspi/registry /Users/Robert/Documents/MATLAB/SupportPackages/R2018b/toolbox/realtime/targets/raspi/raspi_examples
and the deploy function is still not defined.
Can you please simply tell me what I need to add to the search path so that the deploy function will be visible?

2 Comments

Stephan
Stephan on 3 Nov 2018
Edited: Stephan on 3 Nov 2018
Do you have a Matlab Coder license? This is needed for using deploy as you can read here:
Required Products
  1. Raspberry Pi hardware
  2. A power supply with at least 1A output
  3. MATLAB Coder license
Since i have a Home License it wont work for me, because Mathworks does not offer Matlab Coder to Home users. Maybe that this is the issue?
To find out if you have such a license type:
ver
Then a list of all installed toolboxes appears. If Matlab Coder is not part of this list, you have to purchase it. If you are owner of a home license, you can´not use those features.
Aha! Yes, that must be the explanation, because I am indeed trying to do this at home under a home license.
Thank you for the time you have spent looking into this!

Sign in to comment.

More Answers (3)

Stephan
Stephan on 3 Nov 2018
Edited: Stephan on 3 Nov 2018
Hi,
if the result of:
which deploy
is empty, the package is either not installed or not in Matlab search path.
The support package is not installed automatically when installing Matlab. You have to install it additionally. Follow the link to see how to do this.
Make also sure that the path is added to Matlab search path after installing.
Best regards
Stephan

3 Comments

Stephan
Stephan on 3 Nov 2018
Edited: Stephan on 3 Nov 2018
i prefer to install directly in the Matlab environment as described here:
Advantage is that it is easier and usualy works. Try this.
Regarding the path read the link i provided, there is an explanation what and why.
The steps there require me to go through downloading and burning the card image, which I have already done. Is there any way I can find out what I need to add to the MATLAB path?
I cannot find anything in the link you provided about the required pathname.
I provided the link in my answer

Sign in to comment.

Robert Burkhardt
Robert Burkhardt on 3 Nov 2018

0 votes

After downloading the support package, I did in fact install it by executing this command: Helikon:maci64 Robert$ ./SupportSoftwareInstaller -downloadfolder /Users/Robert/Downloads/MathWorks/SupportPackages/R2018b/ --inputfile /Users/Robert/Downloads/MathWorks/SupportPackages/R2018b/ssi_input.txt
as instructed by the readme.txt file that came in the downloaded support package. This copied everything over to my MATLAB directory from my Downloads directory. The output of the path command includes these items:
/Users/Robert/Documents/MATLAB/SupportPackages/R2018b/toolbox/realtime/targets/raspi /Users/Robert/Documents/MATLAB/SupportPackages/R2018b/toolbox/realtime/targets/raspi/registry /Users/Robert/Documents/MATLAB/SupportPackages/R2018b/toolbox/realtime/targets/raspi/raspi_examples
However "which deploy" still returns an error.
What do I need to add to the path to access it?
Robert Burkhardt
Robert Burkhardt on 3 Nov 2018

0 votes

I have uninstalled the package and installed it again, but to set it up, I have to go through the process of downloading and burning the card image again.
Is there any way to complete the installation/setup by setting the appropriate path names without having to go through all these steps?

2 Comments

The Add-On Explorer now says that the package has been installed. I have exited and restarted MATLAB, and it still says that the deploy command cannot be found. Is there something wrong with the installation process?

Sign in to comment.

Categories

Products

Release

R2018b

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!