{"id":21411720,"url":"https://github.com/flandrade/cdma-simulation","last_synced_at":"2025-07-14T02:31:55.166Z","repository":{"id":83193406,"uuid":"48060401","full_name":"flandrade/cdma-simulation","owner":"flandrade","description":"CDMA communication system using Matlab. #github","archived":false,"fork":false,"pushed_at":"2016-01-21T18:00:08.000Z","size":840,"stargazers_count":17,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-19T03:32:03.712Z","etag":null,"topics":["awgn-channel","cdma-communication","communication-systems","matlab","plots","quantization","simulation","users-voices"],"latest_commit_sha":null,"homepage":"","language":"Matlab","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flandrade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-15T18:07:53.000Z","updated_at":"2023-12-12T01:19:39.000Z","dependencies_parsed_at":"2023-03-22T06:54:27.783Z","dependency_job_id":null,"html_url":"https://github.com/flandrade/cdma-simulation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flandrade%2Fcdma-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flandrade%2Fcdma-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flandrade%2Fcdma-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flandrade%2Fcdma-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flandrade","download_url":"https://codeload.github.com/flandrade/cdma-simulation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225941812,"owners_count":17549070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awgn-channel","cdma-communication","communication-systems","matlab","plots","quantization","simulation","users-voices"],"created_at":"2024-11-22T17:47:24.579Z","updated_at":"2024-11-22T17:47:25.050Z","avatar_url":"https://github.com/flandrade.png","language":"Matlab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simulation of CDMA communication system\nThis program simulates a basic CDMA communication system using Matlab. It includes the following components:\n\n![Diagram](https://github.com/flandrade/cdma-simulation/blob/master/images/diagram.png)\n\n**cdma.m** is the main file.\n\n## Components and options\n\n### Input voices\nFour .wav files to simulate four users (variables x1, x2, x3 and x4). The program plots these input signals.\n\n### Quantization\nThis program plots the first input signal with the levels of quantization and the quantized signal.\n\n**nivel**: the number of levels for quantization.\n\n**opcion**: quantization processes. Available options:\n- 1 - Uniform\n- 2 - Mu-Law\n- 4 - A-Law\n\n**errorcuantizacion**: quantization error.\n\n### Multiple Access\n**opt**: type of code for CDMA access. Available options:\n- 1 = Orthogonal (Synchronous)\n- 2 = Random (Asynchronous)\n\n**gp**: GP value for correlation matrix.\n\n### Modulation\nBPSK modulation is performed.\n\n### AWGN Channel\nThis module simulates a AWGN channel where noise is added to the communication.\n\n**ebno**: Eb/N0. It is the energy per bit to noise power spectral density ratio. Value between 1 and 10, where 10 is for the least noisy channel.\n\n## Output\n\n### BER Curves  \nThis module uses a loop in order to simulate an AWGN channel with several Eb/N0 values (between 1 and 10)m and it plots the BER curve for the selected voice.\n\nDemodulation and the division of users are performed in this loop.\n\n**errorpe**: probability of error. It gives the average rate of occurrence of decoding errors.\n\n### Final message\nYou can either select to play one user voice or all users voices. The program plots the output signal.\n\n## Graphs\n\n![Plots](https://github.com/flandrade/cdma-simulation/blob/master/images/plot.jpg)\n\n### Acknowledgements\nThis program was developed during the communication course \"Comunicación y codificación digital\" at Universidad de las Fuerzas Armadas ESPE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflandrade%2Fcdma-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflandrade%2Fcdma-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflandrade%2Fcdma-simulation/lists"}