targetHardware not found despite having installed the Raspberry Pi Hardware Support Package installed

조회 수: 2 (최근 30일)
Hi,
I've been trying to access the Raspberry Pi using MATLAB. At one point in the tutorials it asks for doing
targetObject = targetHardware('Raspberry Pi')
However, despite the Support Package being installed, it says "unrecognized function". I've reinstalled the package to no avail. In MATLAB online it works as expected. The documentation in help targetHardware is shown correctly as well.
  댓글 수: 3
Javi
Javi 2025년 7월 4일
Hi thanks for the reply. I am indeed using a Raspberry Pi 4 Model B running 32-bit OS Debian 'bullseye'.
I was running the command on the command window, no additional error lines or logs other than the Unrecognized function red text.
Thanks,
Javi
Javi 2025년 7월 4일
편집: Javi 2025년 7월 4일
Hi thanks for the reply. I am indeed using a Raspberry Pi 4 Model B running 32-bit OS Raspbian 'bullseye'.
I was running the command on the command window, no additional error lines or logs other than the Unrecognized function red text.
Thanks,

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

답변 (1개)

Sameer
Sameer 2025년 7월 8일
Since you mentioned that the command works correctly in MATLAB Online, the issue is likely related to your local MATLAB environment. I recommend checking out the following MATLAB Answers thread, which outlines several possible causes for the "Unrecognized function" error and how to resolve them:
Hope this helps!

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by