Why am I getting “Inputs must be character vectors, cell arrays of character vectors, or string arrays” error when I build androidGet​tingStarte​dExample example model?

23 ビュー (過去 30 日間)
I am getting “Inputs must be character vectors, cell arrays of character vectors, or string arrays” error when I build androidGettingStartedExample example model from Simulink Support package for Android devices. The error message is as below:

採用された回答

Sutanu Maiti
Sutanu Maiti 2022 年 10 月 3 日
編集済み: Sutanu Maiti 2022 年 10 月 12 日
Few recent Android phones with multiple cameras are producing the error mentioned above even though they goes through the Hardware Setup Screens and TestApp runs fine.
This is an issue with the support package that fails to extract camera information from certain phones.
Here is a fix provided to get rid of that issue.
One p-coded file needs to be replaced with the attached file and the details of how to do is given below:
Please execute below command in MATLAB to go to the directory:
>> cd(fullfile(codertarget.android.internal.getSpPkgRootDir,'+codertarget','+internal'))
Please keep a backup of the “extractCameraInfoFromXML.p” file:
>> movefile extractCameraInfoFromXML.p extractCameraInfoFromXML.p.bak
Now download the attached .zip file and extract extractCameraInfoFromXML.p file within it. Copy the extracted p-file at the current location.
Also, do rehash toolbox cache by executing the below commands in MATLAB
>> cd(matlabroot)
>> clear pcode;
>> rehash toolboxcache
>> clear classes
Now you should be able to build any model containing Camera block.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAndroid Devices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by