# sdrforengineers/code architecture

> Architecture diagram of the GitHub repository sdrforengineers/code, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sdrforengineers/code
- Repository: https://github.com/sdrforengineers/code

## Overview

This repository is a collection of MATLAB implementations accompanying an SDR textbook, rather than a single application with a documented runtime workflow. The filenames indicate examples for modulation and transmission, receiver synchronization, equalization, OFDM, Pluto SDR hardware, and signal analysis. The README provides no further capability or flow documentation, and no source excerpts were supplied, so the graph shows these documented-by-filename areas without inferring calls or data flow between them.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tx["Modulation and transmission"]
  node_modulation["PSK modulation<br/>[psk.m]"]
  node_barker["Barker codes<br/>[barkerBits.m]"]
  node_srrc["SRRC filtering"]
  node_packet["Packet generation<br/>[genOFDMPacket.m]"]
end

subgraph group_sync["Receiver synchronization"]
  node_packet_detect["Packet detection<br/>[packetDetect.m]"]
  node_freq_est["Frequency estimation<br/>[freqEstimate.m]"]
  node_timing["Timing recovery<br/>[TimingError.m]"]
end

subgraph group_eq["Channel equalization"]
  node_channel_est["Channel estimation<br/>[chanEst.m]"]
  node_equalizer["Channel equalization<br/>[chanEQ.m]"]
  node_dfe["DFE equalizer<br/>[chanEQDFE.m]"]
end

subgraph group_ofdm["OFDM"]
  node_ofdm_symbol["OFDM symbols<br/>[ofdm_sym.m]"]
  node_ofdm_equalizer["OFDM equalization<br/>[eqOFDM.m]"]
  node_ofdm_frequency["OFDM frequency estimation<br/>[freqEstOFDM.m]"]
end

subgraph group_hardware["SDR hardware"]
  node_pluto_loopback["Pluto loopback<br/>[plutoLoopback.m]"]
  node_pluto_offset["Pluto frequency offset<br/>[plutoFreqOffset.m]"]
end

subgraph group_analysis["Signal analysis"]
  node_eye["Eye diagrams<br/>[eyeDiagram.m]"]
  node_sfdr["SFDR examples<br/>[sfdr_example.m]"]
  node_system["System examples<br/>[systemExample.m]"]
end

node_actor(("SDR learner"))

click node_modulation "https://github.com/sdrforengineers/code/blob/master/matlab/psk.m"
click node_barker "https://github.com/sdrforengineers/code/blob/master/matlab/barkerBits.m"
click node_srrc "https://github.com/sdrforengineers/code/blob/master/matlab/srrc_impulse_response.m"
click node_packet "https://github.com/sdrforengineers/code/blob/master/matlab/genOFDMPacket.m"
click node_packet_detect "https://github.com/sdrforengineers/code/blob/master/matlab/packetDetect.m"
click node_freq_est "https://github.com/sdrforengineers/code/blob/master/matlab/freqEstimate.m"
click node_timing "https://github.com/sdrforengineers/code/blob/master/matlab/TimingError.m"
click node_channel_est "https://github.com/sdrforengineers/code/blob/master/matlab/chanEst.m"
click node_equalizer "https://github.com/sdrforengineers/code/blob/master/matlab/chanEQ.m"
click node_dfe "https://github.com/sdrforengineers/code/blob/master/matlab/chanEQDFE.m"
click node_ofdm_symbol "https://github.com/sdrforengineers/code/blob/master/matlab/ofdm_sym.m"
click node_ofdm_equalizer "https://github.com/sdrforengineers/code/blob/master/matlab/eqOFDM.m"
click node_ofdm_frequency "https://github.com/sdrforengineers/code/blob/master/matlab/freqEstOFDM.m"
click node_pluto_loopback "https://github.com/sdrforengineers/code/blob/master/matlab/plutoLoopback.m"
click node_pluto_offset "https://github.com/sdrforengineers/code/blob/master/matlab/plutoFreqOffset.m"
click node_eye "https://github.com/sdrforengineers/code/blob/master/matlab/eyeDiagram.m"
click node_sfdr "https://github.com/sdrforengineers/code/blob/master/matlab/sfdr_example.m"
click node_system "https://github.com/sdrforengineers/code/blob/master/matlab/systemExample.m"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_modulation,node_barker,node_srrc,node_packet toneBlue
class node_packet_detect,node_freq_est,node_timing toneAmber
class node_channel_est,node_equalizer,node_dfe toneMint
class node_ofdm_symbol,node_ofdm_equalizer,node_ofdm_frequency toneRose
class node_pluto_loopback,node_pluto_offset,node_actor toneIndigo
class node_eye,node_sfdr,node_system toneTeal
```

## Components

### Modulation and transmission

- [PSK modulation](https://github.com/sdrforengineers/code/blob/master/matlab/psk.m): `matlab/psk.m`
- [Barker codes](https://github.com/sdrforengineers/code/blob/master/matlab/barkerBits.m): `matlab/barkerBits.m`
- [SRRC filtering](https://github.com/sdrforengineers/code/blob/master/matlab/srrc_impulse_response.m): `matlab/srrc_impulse_response.m`
- [Packet generation](https://github.com/sdrforengineers/code/blob/master/matlab/genOFDMPacket.m): `matlab/genOFDMPacket.m`

### Receiver synchronization

- [Packet detection](https://github.com/sdrforengineers/code/blob/master/matlab/packetDetect.m): `matlab/packetDetect.m`
- [Frequency estimation](https://github.com/sdrforengineers/code/blob/master/matlab/freqEstimate.m): `matlab/freqEstimate.m`
- [Timing recovery](https://github.com/sdrforengineers/code/blob/master/matlab/TimingError.m): `matlab/TimingError.m`

### Channel equalization

- [Channel estimation](https://github.com/sdrforengineers/code/blob/master/matlab/chanEst.m): `matlab/chanEst.m`
- [Channel equalization](https://github.com/sdrforengineers/code/blob/master/matlab/chanEQ.m): `matlab/chanEQ.m`
- [DFE equalizer](https://github.com/sdrforengineers/code/blob/master/matlab/chanEQDFE.m): `matlab/chanEQDFE.m`

### OFDM

- [OFDM symbols](https://github.com/sdrforengineers/code/blob/master/matlab/ofdm_sym.m): `matlab/ofdm_sym.m`
- [OFDM equalization](https://github.com/sdrforengineers/code/blob/master/matlab/eqOFDM.m): `matlab/eqOFDM.m`
- [OFDM frequency estimation](https://github.com/sdrforengineers/code/blob/master/matlab/freqEstOFDM.m): `matlab/freqEstOFDM.m`

### SDR hardware

- [Pluto loopback](https://github.com/sdrforengineers/code/blob/master/matlab/plutoLoopback.m): `matlab/plutoLoopback.m`
- [Pluto frequency offset](https://github.com/sdrforengineers/code/blob/master/matlab/plutoFreqOffset.m): `matlab/plutoFreqOffset.m`

### Signal analysis

- [Eye diagrams](https://github.com/sdrforengineers/code/blob/master/matlab/eyeDiagram.m): `matlab/eyeDiagram.m`
- [SFDR examples](https://github.com/sdrforengineers/code/blob/master/matlab/sfdr_example.m): `matlab/sfdr_example.m`
- [System examples](https://github.com/sdrforengineers/code/blob/master/matlab/systemExample.m): `matlab/systemExample.m`

### Other components

- **SDR learner**
