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?

 채택된 답변

Robert Burkhardt
Robert Burkhardt 2018년 11월 3일

0 개 추천

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

Stephan
Stephan 2018년 11월 3일
편집: Stephan 2018년 11월 3일
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.
Robert Burkhardt
Robert Burkhardt 2018년 11월 3일
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!

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

Stephan
Stephan 2018년 11월 3일
편집: Stephan 2018년 11월 3일

1 개 추천

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

Stephan
Stephan 2018년 11월 3일
편집: Stephan 2018년 11월 3일
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.
Robert Burkhardt
Robert Burkhardt 2018년 11월 3일
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.
Stephan
Stephan 2018년 11월 3일
I provided the link in my answer

댓글을 달려면 로그인하십시오.

Robert Burkhardt
Robert Burkhardt 2018년 11월 3일

0 개 추천

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 2018년 11월 3일

0 개 추천

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

Robert Burkhardt
Robert Burkhardt 2018년 11월 3일
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?
Stephan
Stephan 2018년 11월 3일
편집: Stephan 2018년 11월 3일

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

릴리스

R2018b

태그

Community Treasure Hunt

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

Start Hunting!

Translated by