Getting Started | ![]() ![]() |
Simulating Noise with Imported Data
You can also use the Signal From Workspace block to simulate channel noise with specific error patterns, in order to test the performance of an error correcting code. An example of this is shown in the following figure.
Using Data from the Workspace to Simulate Errors
This example is similar to the model shown in the figure Hamming Code Model, but instead of using the Binary Symmetric Channel block to simulate noise, the model imports error data from the workspace.
To build this model, follow these steps:
hammingdoc
at the MATLAB prompt to open the Hamming code model. Then save the model under a different name in the directory where you store your work files.
length(errors)
in the Stop time field.
errors
.
4/7
.
7
, to match the frame size of the signal coming out of the Hamming Encoder block.
![]() | Importing Data from the MATLAB Workspace | Simulating Noise with Specified Error Patterns | ![]() |