Unable to resolve the name phased.internal

I am currently using the Matlab version R2021a and I am trying to run the "Pedestrian and Bicyclist Classification Using Deep Learning" example from Matlab. An error was raised at line 287 of backscatterPedestrian.m file ("Unable to resolve the name phased.internal.getHumanBodyParts."). I have tried to find some document about internal attribute but I cannot find anything related.
This is exactly what i see when i try to excute the example file:
Unable to resolve the name phased.internal.getHumanBodyParts.
Error in backscatterPedestrian (line 287)
[obj.pBodyPartsJointsInitialPosition,~] =
phased.internal.getHumanBodyParts(obj.Height);
Error in helperBackScatterSignals (line 63)
pedestrian = backscatterPedestrian('InitialPosition',ped_pos,...
Error in test_udoppler (line 4)
[xPedRec,xBicRec,xCarRec,Tsamp] = helperBackScatterSignals(numPed,numBic,numCar);

 Accepted Answer

See Bug Report 2470530. Apply the workaround given in that bug report or fix it by installing release R2021a Update 2 if possible.

More Answers (1)

Walter Roberson
Walter Roberson on 12 Jun 2021
Edited: Walter Roberson on 12 Jun 2021
internal is not an attribute . internal is just part of the name. MATLAB uses internal as part of names to indicate that the functions are not intended to be directly called by the user. A lot of the time, items marked internal are either coded as "built in" (that is, implemented in C or C++ or Fortran), or else coded as .p files.
phased.internal.* is part of the implementation files for the Phased Array Toolbox, and the example would probably fail at that point if you do not have that toolbox installed and licensed,

3 Comments

Dear Roberson,
Thank you for valuable information. I checked that Phased Array Toolbox installed and licensed properly, I have run another example ("Introduction to Micro-Doppler Effects") that also uses phased.internal in Phased Array Toolbox and this works well. I realized that there is not getHumanBodyParts.m file in my "R2021a\toolbox\phased\phased\+phased\+internal" folder. I am wondering that there is any alternate version of this function?
Your error message is about line 287 in backscatterPedestrian where it calls pahsed.internal.getHumanBodyParts . But when I check in R2021a (update 3), I see that line 287 is about releasing an object, and the closest to that call is line 272
[obj.pBodyPartsJointsInitialPosition,~] = radar.internal.getHumanBodyParts(obj.Height);
Notice the reference to radar not phased
I suspect that somehow you do not have the correct R2021a version of that example or the implementing files.
It might be worth reinstalling Phased Array Toolbox and Radar Toolbox
Dear Roberson,
Thank you for your support, I have solved the problem by remove backscatterPedestrian.m file in the example folder like Steven mentioned above.

Sign in to comment.

Categories

Asked:

on 12 Jun 2021

Commented:

on 13 Jun 2021

Community Treasure Hunt

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

Start Hunting!