主函数 Resources

Showing items tagged with "主函数"

Main function Alamouti(Nr, max_snr, max_err_symbol, symbol_per_frame) implements the Alamouti space-time coding scheme with the following components: QpskMapping(psudo_bit_sequence) - converts binary data to QPSK modulated symbols; RayleighCH(Nr, Nt) - simulates Rayleigh fading channel characteristics. Example usage: Alamouti(1, 12, 20, 24). Key parameters: 2 transmit antennas and 1 receive antenna configuration, SNR range from 0dB to 12dB, simulation stops when symbol errors exceed 20 at each SNR point, with 24 QPSK symbols per frame.

MATLAB 355 views Tagged

The main.m function serves as the primary entry point, while HK.m contains the core classification algorithm. Training patterns (w1, w3) and unclassified patterns (w2, w4) are loaded from the Patterns.mat file, which contains four distinct samples. The algorithm processes these patterns through feature extraction and decision boundaries to classify unknown samples.

MATLAB 229 views Tagged

Simulation study of Kalman filter applications in target tracking. Subfunctions implement Kalman filtering for tracking moving target positions, while the main function performs tracking based on specific assumptions and Monte Carlo simulations. Scenario setup: A two-coordinate radar observes a target moving on a plane with constant velocity motion along the x-axis at 15 m/s from 0-600 seconds, starting from (-10000 m, 2000 m). Radar scan period T=2 seconds, with independent x and y observations having observation noise standard deviation of 100 meters each.

MATLAB 229 views Tagged

This MATLAB code implements the k-means clustering algorithm with complete functionality including main function and sample data. The program performs binary classification (k=2 clusters) and is ready to run immediately without additional setup. The implementation includes core k-means operations such as centroid initialization, distance calculation, cluster assignment, and centroid updating through iterative optimization.

MATLAB 219 views Tagged

This MATLAB implementation provides LZW decompression function and main program, designed to work with my previously uploaded LZW compression code. The algorithm demonstrates excellent compression performance achieving over 80% compression ratio. The code includes dictionary initialization, string table management, and compressed data decoding mechanisms. Users can contact me for detailed explanations about the algorithm implementation and usage techniques.

MATLAB 205 views Tagged