callLettersToPICode
Convert North American call letters to binary PI code
Description
returns the 16-bit program identification (PI) code that corresponds to picode
= callLettersToPICode(rbdsgen
,callLetters
)callLetters
.
Examples
Generate Program Identification Code for RBDS Waveform
Use the callLettersToPICode
object function to generate the PI code for an RBDS waveform.
rbdsgen = comm.RBDSWaveformGenerator;
callLetters = "WLIR";
callLettersToPICode(rbdsgen,callLetters)
ans = 1×16
0 1 1 1 0 0 1 0 1 0 0 1 0 1 0 1
Input Arguments
rbdsgen
— RBDS waveform generator object
comm.RBDSWaveformGenerator
object
RBDS waveform generator object, specified as a comm.RBDSWaveformGenerator
object.
callLetters
— Radio station call letters
four-character string or character vector | three-character string or character vector
Radio station call letters, specified as a three- or four-character string or
character vector. Acceptable call letter formats are three-character or four-character
vectors beginning with 'K'
or 'W'
.
Example: "WLIR"
or "KPOA"
Data Types: char
| string
Output Arguments
picode
— Program identification code
16-bit row vector
Program identification (PI) code, returned as a 16-bit row vector. In North America, the PI code conveys the call letters of the station.
Version History
Introduced in R2017a
See Also
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)