⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commfunc.htm

📁 数字通信第四版原书的例程
💻 HTM
字号:
<TITLE>Communications Toolbox Graphical User Interface Example </TITLE><p><h2>Communications Toolbox Graphical User Interface Example </h1><hr><br>You can type <b><a run="commgui">commgui</a></b> to open the graphical userinterface (GUI) example. This example provides a simple tool for you to compute bit-error-rates using different combinations of differentmethods. This help file briefly describes how to use the tool.<dl><dd><A HREF="#general">General Information</A><dd><A HREF="#loadsave">Load/Save Window Parameter Setting</A><dd><A HREF="#parameter">Define Computation Parameters</A><dd><A HREF="#computation">Start Computation</A><dd><A HREF="#data">Manage of Computed Data</A></dl><p><p><dd><a href="commhelp.html">Go to the tutorial for Communications Toolbox</a><p><p><dl><tt><dd>This is commfunc.html file</bl></tt></dl><HR><br><TITLE>Communication Toolbox GUI Example General Information</TITLE><A NAME="general"><p><h2>General Information</h2>The graphical user interface (GUI) example illustrates how touse the Communications Toolbox to compute the bit-error-rate.The example uses MATLAB functions in sources and sinks,error-control coding, modulation, and channel categories.The computation is based on the parameters provided in the dataentry slot. In the GUI window, all white areas are designed fordata input.<p>You can define your own computation in choosing <b>my own</b> in the GUI window. To be able to run your algorithm, you need toedit the file <b>commod.m</b>.<p><p><p><HR><br><TITLE>Load/Save Window Parameter Setting for Comm Toolbox GUI Example </TITLE><A NAME="loadsave"><p><H2>Load/Save Window Parameter Setting</h2>The file pull-down menu at the top of the GUI window enablesyou to load and save the parameters defined in this example. There isa <b>commfoo.mat</b> file in the <b>comm</b> directory in the Communications Toolbox.The file is an example of the saved data. The saved data includes theparameters of the computation methods, the resultingcomputation data, and the curve fitting order. <p>The <b>load</b> and <b>save</b> selection in the <b>file</b> pull-downmenu uses a browser file system to help you access your directory (folder) and files.<p><p><p><HR><br><TITLE>Define Computation Parameters in the Communications Toolbox GUI Example</TITLE><A NAME="parameter"><p><H2>Define Computation Parameters</h2>The GUI window is divided into two sections: the upper sectionfor parameter entries and the lower section for displaying the computed data.The computation goes through the stages of <dl><dd>Source Data<dd>Error Control Coding<dd>Modulation<dd>Channel<dd>Demodulation<dd>Error Control Decoding<dd>Save Data</dl>The first parameter in the channel category can be a vector. The vector length determines the computed data length. When you use the random integers in the Source category, the data length can be a scalar or a vector. The vector length must match the length of thefirst parameter in the channel. When you use aworkspace variable as an input source, the workspace variablecan be a column vector, or a matrix with its column number the samelength as the first parameter in the Channel category.<p>You can view the help for the functions <b><A HREF="encode.m">encode</A></b>and <b><A HREF="decode.m">decode</A></b> to find the definition of theerror-control coding parameters.<p>You can view the help for the functions <b><A HREF="amod.m">dmod</A></b>and <b><A HREF="ademod.m">ddemod</A></b> for the passband modulation/demodulationsimulation parameters.You can view the help for the functions <b><A HREF="amodce.m">dmodce</A></b>and <b><A HREF="ademodce.m">ddmodce</A></b> for the baseband modulation/demodulationsimulation parameters.<p>If you don't know how to choose a parameter, leave the parameter entryempty. The example will fill in a default parameter for you.<p><p><p><HR><br><TITLE>Start Computation in the Communications Toolbox GUI Example</TITLE><A NAME="computation"><p><H2>Start Computation</h2>After defining the parameters, you can click the button RUNto start the simulation. There are two indicators showing thecomputation stages. A indicator shows which computation category is processing. The computation categories are:<dl><dd>Source Data<dd>Error Control Coding<dd>Modulation<dd>Channel<dd>Demodulation<dd>Error Control Decoding<dd>Save Data</dl>There is also an indication bar that shows the percentage of thecomputation completed. The percentage shows the ratio ofthe completed computation stages to the total computation stages.<p> The computed data is stored in the Current Data storage area. The datacomtains SNR, the signal to noise ratio, and bit_err_ratio, thebit error ratio.<p><p><p><HR><br><TITLE>Manage Computation Data in the Communications Toolbox GUI Example</TITLE><A NAME="data"><p><H2>Manage Computation Data</h2>The GUI window provides three storage slot for yourdata comparison. You can import the data from workspace variables.You can also export the data to workspace variables. Use yourmouse to drag data from one location and drop thedata in another location.<p>Note that after you have dropped the data into the trash can,the data will be deleted from the window. There is noundo.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -