comm.BasebandFileReader
Read baseband signal from file
Description
The comm.BasebandFileReader
System object™ reads a baseband signal from a specific type of binary file written by the
comm.BasebandFileWriter
System object. Baseband signals are typically downconverted from a nonzero center
frequency to 0 Hz. The SampleRate
and CenterFrequency
properties are saved when the file is created. The comm.BasebandFileReader
object automatically reads the sample rate,
center frequency, number of channels, and any descriptive data and saves them to its
read-only properties.
To read a baseband file from a file:
Create the
comm.BasebandFileReader
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Syntax
Description
creates a baseband file reader System object to read a baseband signal from a specific type of binary file
written by the bbr
= comm.BasebandFileReadercomm.BasebandFileWriter
System object.
bbr = comm.BasebandFileReader(fname,spf)
also sets the
SamplesPerFrame
property to spf
.
bbr = comm.BasebandFileReader(___,Name=Value)
sets properties using one or more name-value arguments in addition to an input
argument combination from any of the previous syntaxes. For example,
SampleRate
=2
sets the sample rate of
the baseband file reader to 2.
Properties
Usage
Syntax
Description
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)