MATLAB-функции пакета Communications Toolbox

Назначение пакета Communications Toolbox

Как уже отмечалось, пакет Communications Toolbox является второй частью программного комплекса, обеспечивающего проектирование и моделирование коммуникационных систем и устройств. В отличие от пакета Communications Blockset, пакет Communications Toolbox имеет множество функций, доступных из командной строки системы MATLAB. Это позволяет пользователю пакета не только «передвигать и вставлять» модели компонентов в общую модель проектируемого устройства или системы, но и полноценно использовать средства пакета в своих программных разработках. MATLAB-функции пакета классифицируются по тому же принципу, что и библиотеки моделей компонентов. Поэтому приведенный ниже материал существенно дополняет описание библиотек.

Чтобы функции пакета Communications Toolboox были доступны из среды MATLAB, следует установить пакет при инсталляции системы MATLAB и проследить за тем, чтобы в Path-браузере был открыт доступ к этим функциям. Обычно при правильной инсталляции MATLAB с выбранными пакетами расширения это обеспечивается автоматически.

В окне Path-браузера можно наблюдать полный список m-файлов функций и файлов DLL-библиотек, представленных в алфавитном порядке. Ниже мы рассмотрим эти функции по их категориям. С помощью команды help name можно вывести детальные сведения о каждой функции, включая правила их синтаксического задания. Поэтому объем приводимого ниже материала по синтаксису задания функций ограничен.

Вызов полного списка функций

С помощью приведенной ниже команды можно вызвать список всех функций пакета Communications Toolbox, представляющих модели компонентов:

» help comm;

Communications Toolbox.

Version 2.1 (R13SP1) 27-Dec-2002

Signal Sources.

randerr — Generate bit error patterns.

randint — Generate matrix of uniformly distributed

random integers.

randsrc — Generate random matrix using prescribed

alphabet.

wgn — Generate white Gaussian noise.

Signal Analysis Functions.

biterr — Compute number of bit errors and bit error rate.

eyediagram — Generate an eye diagram.

scatterplot — Generate a scatter plot.

symerr — Compute number of symbol errors and symbol

error rate.

Source Coding.

arithdeco — Decode binary code using arithmetic decoding.

arithenco — Encode a sequence of symbols using arithmetic coding.

compand — Source code mu-law or А-law compressor

or expander.

dpcmdeco — Decode using differential pulse code modulation,

dpcmenco — Encode using differential pulse code modulation,

dpcmopt — Optimize differential pulse code

modulation parameters.

lloyds — Optimize quantization parameters

using the Lloyd algorithm.

quantiz — Produce a quantization index and a quantized output value .

Error-Control Coding.

bchpoly — Produce parameters or generator

polynomial for binary BCH code.

convene — Convolutionally encode binary data.

cyclgen — Produce parity-check and generator

matrices for cyclic code.

cyclpoly — Produce generator polynomials for a cyclic code.

decode — Block decoder.

encode — Block encoder.

gen2par — Convert between parity-check and

generator matrices.

gfweight — Calculate the minimum distance of a

linear block code.

hammgen — Produce parity-check and generator

matrices for Hamming code.

rsdec

— Reed-Solomon decoder.

rsenc rsdecof

  • — Reed-Solomon encoder.
  • — Decode an ASCII file that was encoded

using Reed-Solomon code.

rsencof rsgenpoly syndtable vitdec

  • — Encode an ASCII file using Reed-Solomon code.
  • — Produce Reed-Solomon code generator polynomial.
  • — Produce syndrome decoding table.
  • — Convolutionally decode binary data using

the Viterbi algorithm.

Lower-Level Functions for Error-Control Coding.

bchdeco bchenco

  • — BCH decoder.
  • — BCH encoder.

Modulation/Demodulation.

ademod ademodce amod amodce apkconst constellation.

ddemod ddemodce demodmap

  • — Analog passband demodulator.
  • — Analog baseband demodulator.
  • — Analog passband modulator.
  • — Analog baseband modulator.
  • — Plot a combined circular ASK-PSK signal
  • — Digital passband demodulator.
  • — Digital baseband demodulator.
  • — Demap a digital message from a

demodulated signal.

dmod dmodce modmap qaskdeco

  • — Digital passband modulator.
  • — Digital baseband modulator.
  • — Map a digital signal to an analog signal.
  • — Demap a message from a QASK square

signal constellation.

qaskenco constellation.

— Map a message to a QASK square signal

Special Filters.

hank2sys hilbiir rcosfIt cosine filter.

rcosine

  • — Convert a Hankel matrix to a linear system model.
  • — Hilbert transform HR filter design.
  • — Filter the input signal using a raised
  • — Design raised cosine filter.

Lower-Level Functions for Special Filters.

rcosfir rcosiir

  • — Design a raised cosine FIR filter.
  • — Design a raised cosine HR filter.

Channel Functions.

awgn

Galois Field gf gfhelp

  • — Add white Gaussian noise to a signal. Computations.
  • — Create a Galois array.
  • — Provide a list of operators that are compatible

with Galois arrays.

convmtx — Convolution matrix of Galois field vector,

cosets — Produce cyclotomic cosets for a Galois field,

dftmtx — Discrete Fourier transform matrix in a

Galois field.

gftable — Generate a file to accelerate Galois

field computations.

isprimitive — Check whether a polynomial over a Galois field is primitive.

minpoly — Find the minimal polynomial for a Galois

element.

primpoly — Find primitive polynomials for a Galois field. Computations in Galois Fields of Odd Characteristic.

gfadd — Add polynomials over a Galois field.

gfconv — Multiply polynomials over a Galois field,

gfcosets — Produce cyclotomic cosets for a Galois field,

gfdeconv — Divide polynomials over a Galois field.

gfdiv — Divide elements of a Galois field.

gffilter — Filter data using polynomials over a

prime Galois field.

gflineq — Find a particular solution of Ax = b

over a prime Galois field.

gfminpol — Find the minimal polynomial of an

element of a Galois field.

gfmul — Multiply elements of a Galois field.

gfpretty — Display a polynomial in traditional format.

gfprimck — Check whether a polynomial over a Galois field is primitive.

gfprimdf — Provide default primitive polynomials for a Galois field.

gfprimfd — Find primitive polynomials for a Galois field, gfrank — Compute the rank of a matrix over a Galois field,

gfrepcov — Convert one binary polynomial

representation to another.

gfroots — Find roots of a polynomial over a prime

Galois field.

gfsub — Subtract polynomials over a Galois field.

gftrunc — Minimize the length of a polynomial

representation.

gftuple — Simplify or convert the format of

elements of a Galois field.

Utilities. bi2de de2bi erf erf c istrellis marcumq mask2shift

  • — Convert binary vectors to decimal numbers.
  • — Convert decimal numbers to binary numbers.
  • — Error function.
  • — Complementary error function.
  • — Check if the input is a valid trellis structure.
  • — Generalized Marcum Q function.
  • — Convert mask vector to shift for a shift register configuration.

oct2dec — Convert octal numbers to decimal numbers.

poly2trellis — Convert convolutional code polynomial to trellis description.

shift2mask — Convert shift to mask vector for a shift register configuration.

vec2mat — Convert a vector into a matrix.

See also COMMDEMOS, SIGNAL.

Обратите внимание на имеющуюся в конце этого сообщения ссылку на дополнительные команды, открывающие возможность дополнительного знакомства со средствами пакета.

Описанная ниже реализация пакета Communication Toolbox 2.1 дополнена тремя новыми функциями для кодирования и декодирования в кодах Рида—Соломона и полиномиальной генерации этих кодов.

Здесь приведены англоязычные наименования соответствующих команд и функций в том виде, как они выводятся системой MATLAB. Большинство этих наименований вполне очевидно специалистам и даже учащимся, изучающим курсы основ теории связи и передачи информации. Тем не менее в дальнейшем, по мере описания функций пакета, соответствующие термины будут даны в русскоязычном написании.

 
Посмотреть оригинал
< Пред   СОДЕРЖАНИЕ ОРИГИНАЛ   След >