Skip to content
Projekte

mli55/2D-MUSIC has 387 GitHub stars and 25 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-25 12:07 UTC. Last push 2026-10-10.

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
Verlauf wird gesammelt
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

Über uns

2D-MUSIC to estimate time-of-flight and angle-of-arrival in simulated radar data.

Kreativität und Medien

README.md

Original

2D‑MUSIC

2D‑MUSIC for joint time‑of‑flight and angle‑of‑arrival estimation on simulated radar‑like data.

What is inside

  • Core algorithm: music_2d.m
  • Estimation helpers: estimate_aoa_music.m, estimate_tof_music.m
  • Simulation: main_simulation.m, receive_data_simulation.m, path_delays.m, target_orientations.m
  • Experiment data: radar_200.mat, radar_2002.mat, radar_200_permuted.mat, receiver_200.mat
  • Config: parameters.m

Autosave files with the .asv suffix are not needed to run examples. They will be ignored once a .gitignore is added.

Quick start

  1. Clone or download the repository.
  2. Open MATLAB and set the repo folder as the current directory.
  3. Open parameters.m and adjust array size, carrier, bandwidth, and SNR if needed.
  4. Run the top‑level script:
main_simulation

This script will:

  • Generate or load data from the .mat files
  • Call the 2D‑MUSIC routine
  • Plot the pseudospectrum and report the dominant peak as the joint estimate

Typical workflow

You can run the estimation directly if you already have baseband snapshots.

% X  — snapshots matrix (sensors × snapshots)
% f  — frequency grid or sample rate info
% c  — propagation speed (for ToF)
% d  — sensor spacing (for AoA)
[P, tau_grid, theta_grid] = music_2d(X, f, c, d);
[theta_hat] = estimate_aoa_music(P, theta_grid);
[tau_hat]   = estimate_tof_music(P, tau_grid);

The exact arguments match the function headers in the repo.

Reproducible example

A small example uses the included radar_200.mat data set. You can reproduce the figure from the paper notes with:

load radar_200.mat
[P, tau, theta] = music_2d(X, fs, c, d);
imagesc(theta, tau, 10*log10(P)); axis xy
xlabel('Angle (deg)'); ylabel('Delay (s)'); title('2D-MUSIC pseudospectrum')

File layout suggestion

To keep things tidy on a lab website you can adopt this structure in the repo:

2D-MUSIC/
├─ src/                % all .m source files
├─ data/               % .mat data files
├─ examples/           % minimal runnable demos
├─ figures/            % generated plots saved by scripts
├─ README.md
├─ LICENSE
└─ .gitignore

Move code into src/, move the .mat files into data/, and add one short script under examples/ that loads data/radar_200.mat and produces a plot.

Citing

If this code helps your work please cite it. A simple BibTeX entry:

@misc{2d_music_mli,
  title        = {2D-MUSIC: MATLAB reference implementation},
  author       = {Li, M.},
  year         = {2025},
  howpublished = {GitHub repository},
  note         = {https://github.com/mli55/2D-MUSIC}
}

Contact

Open an issue or email the maintainer if you have questions or find bugs.

Array calibration extension

Run demo_array_calibration for uncalibrated/calibrated 2D-MUSIC estimates. The demo uses known true calibration as a benchmark; it does not estimate unknown errors blindly. main_simulation defaults to an ideal array.

params.array_truth controls simulation only. params.array_calibration controls the spatial manifold used by both MUSIC estimators. Each accepts:

  • gain: positive M-vector of channel amplitude gains.
  • phase_deg: M-vector of channel phase offsets in degrees.
  • position_error_lambda: M-vector of position errors along the ULA axis, in carrier wavelengths.
  • coupling: M-by-M complex coupling matrix.
  • matrix: optional combined response H, overriding gain/phase/coupling.

The convention is b(theta)=diag(gain.*exp(1i*phase))*C*a(theta). Calibration modifies steering vectors, leaving additive white noise unchanged; no inverse correction of data is applied. The MUSIC spectrum is normalized by steering-vector energy. This narrowband spatial model assumes calibration is constant over the signal bandwidth and uses carrier-frequency positions.

For real measurements, obtain complex array responses at known directions, remove the source amplitude/phase with a consistent reference, then call params.array_calibration = estimate_array_calibration(params, angles_deg, B). At least M independent, well-conditioned directions are required. This fits the combined gain/phase/coupling matrix, not their individual factors. Unknown position or direction-dependent pattern errors cannot generally be represented exactly by a fixed matrix; supply independently measured position errors or extend the model with a measured manifold. Never use simulation truth as real calibration evidence.

Packet-delay alignment is separately controlled by align_packet_delays (default false), and assumes a stable reference path. It is not antenna calibration. The standalone PDD routines are legacy code, not part of this calibration extension.

The simulator now uses independent source snapshots and adds noise after array imperfections. MATLAB is required to run the included benchmark.

Validation of this extension: git diff --check passed. An equivalent NumPy single-source calculation (true angle 20 degrees, range 4.5 m) gave 25 degrees without calibration and 20 degrees with known calibration; the combined matrix fit also passed. This checks the numerical formulation, not MATLAB execution. The MATLAB benchmark was attempted with R2025a but startup failed with MathWorks service error 5201, so MATLAB end-to-end execution remains unverified.

Ähnliche Projekte entdecken

Wird geladen…