Example command not available

2 views (last 30 days)
Hello,
I would like to try out the Airplane Tracking Using ADS-B Signals in Simulink example proposed from Matlab.
To test the example, this command has to be coppied in matlab :
openExample('comm/AirplaneTrackingUsingADSBSignalsInSimulinkExample')
But the following error occurs :
Error using findExample (line 35)
Example "AirplaneTrackingUsingADSBSignalsInSimulinkExample"
not found in "C:\Program
Files\MATLAB\R2020a\examples\comm\examples.xml".
Error in openExample (line 30)
metadata = findExample(exampleId);
I guess that the files for the example are missing, but i can't find the source code anywhere.

Accepted Answer

antoine philippe
antoine philippe on 24 Nov 2021
I found out how to access the example codes that are not available on the matlab website :
  • Open the "Add-on manager" in Matlab
  • Go to the "option" button, and open the toolbox documentation (Communications Tootlbox in my case)
  • Choose the section where your example could be in (Supported Hardware – Software-Defined Radio in my case)
  • The example codes are available using "Open Script"

More Answers (1)

Steven Lord
Steven Lord on 22 Nov 2021
Do you have Communications Toolbox installed? Check using the ver function.
ver comm
------------------------------------------------------------------------------------------------------ MATLAB Version: 9.11.0.1811744 (R2021b) Update 1 MATLAB License Number: Operating System: Linux 4.14.215-0414215-generic #202101122110 SMP Tue Jan 12 21:59:53 UTC 2021 x86_64 Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode ------------------------------------------------------------------------------------------------------ Communications Toolbox Version 7.6 (R2021b)
  1 Comment
antoine philippe
antoine philippe on 22 Nov 2021
When I write the ver function, I get this :
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.8.0.1538580 (R2020a) Update 6
MATLAB License Number: *****
Operating System: Microsoft Windows 11 Pro Version 10.0 (Build 22000)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
Communications Toolbox Version 7.3 (R2020a)
I already used some other examples such as BLE Channel Selection Algorithms, which has the same "Copy Command" button... But it works.

Sign in to comment.

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!