• 大小: 1.63MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-30
  • 语言: 其他
  • 标签: matlab  光通信  仿真  

资源简介

Optilux是一个设计,模拟和分析光通信系统的开发工具包-Optilux is an collection of tools that provide advanced techniques to design, simulate, and analyze optical communication systems。

资源截图

代码片段和文件信息

function ampliflat(xatypeoptions)

%AMPLIFLAT Ideal Optical amplifier with ASE noise.
%   AMPLIFLAT(XATYPE) amplifies the optical field. ATYPE is a string     
%   equal to ‘gain‘ if the amplifier has a flat power gain equal to X [dB].
%   Otherwise ATYPE can be ‘fixpower‘ if the amplifier takes the gain so
%   as to have an output average power for channel ceil(Nch/2) equal 
%   to X [mW] Nch being the number of channels.
%   This options works only with channels separated (see CREATE_FIELD).
%
%   AMPLIFLAT(XATYPEOPTIONS) has the additional variable OPTIONS to
%   insert the amplified spontaneous emission (ASE) noise.
%   OPTIONS is a structure whose fields can be:
%
%   OPTIONS.f:     [dB] is the optical ASE noise figure which corresponds 
%                  to a one-sided ASE power spectral density on two 
%                  polarizations N0 = F*(Gain-1)*h*nu with Gain the 
%                  amplifier gain h the Planck‘s constant and nu the 
%                  channel central frequency.
%                  Hence ASE power on a frequency band B is Pase = N0*B.
%   OPTIONS.asepol:If it‘s ‘asex‘ allows to force to zero the ASE noise 
%                  added to GSTATE.FIELDY while for ‘asey‘ allows to force
%                  to zero the noise added to GSTATE.FIELDX.
%   OPTIONS.noise: A matrix containing user‘s defined complex unit
%                  variance and zero mean Gaussian ASE noise samples. 
%                  OPTIONS.noise must have the same size of 
%                  [GSTATE.FIELDX GSTATE.FIELDY] and must be read in that 
%                  way.
%
%   If the amplifier does not generate ASE noise don‘t set OPTIONS.
%   
%   Note: AMPLIFLAT assumes the same gain for both polarizations. 
%
%   Author: Paolo Serena 2009
%   University of Parma Italy

%    This file is part of Optilux the optical simulator toolbox.
%    Copyright (C) 2009  Paolo Serena 
%  
%    Optilux is free software; you can redistribute it and/or modify
%    it under the terms of the GNU General Public License as published by
%    the Free Software Foundation; either version 3 of the License or
%    (at your option) any later version.
%
%    Optilux is distributed in the hope that it will be useful
%    but WITHOUT ANY WARRANTY; without even the implied warranty of
%    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%    GNU General Public License for more details.
%
%    You should have received a copy of the GNU General Public License
%    along with this program.  If not see .

global CONSTANTS;  % physical constants: a structure defined in reset_all.m
global GSTATE   % GSTATE is a structure whose fields are defined in reset_all.m

HPLANCK = CONSTANTS.HPLANCK;      % Planck‘s constant [J*s]
CLIGHT = CONSTANTS.CLIGHT;      % speed of light [m/s]

[nfrnfc] = size(GSTATE.FIELDX);    % if nfc == 1 there is only one field 

atype = lower(atype);
switch atype
    case ‘gain‘
 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2009-03-16 10:47  optilux_v0.1\
     文件        6255  2009-03-19 14:48  optilux_v0.1\offmat
     文件       35147  2009-03-19 14:48  optilux_v0.1\COPYING
     文件        2355  2009-03-19 14:48  optilux_v0.1\README
     目录           0  2009-03-19 14:48  optilux_v0.1\Optilux_files\
     文件        8386  2009-03-19 14:48  optilux_v0.1\Optilux_files\dop_meter.m
     文件        2609  2009-03-19 14:48  optilux_v0.1\Optilux_files\samp2pat.m
     文件        6810  2009-03-19 14:48  optilux_v0.1\Optilux_files\eval_polar.m
     文件        7524  2009-03-19 14:48  optilux_v0.1\Optilux_files\ampliflat.m
     文件        1271  2009-03-19 14:48  optilux_v0.1\Optilux_files\phase_modulator.m
     文件        8734  2009-03-19 14:48  optilux_v0.1\Optilux_files\receiver_dpsk.m
     文件        1092  2009-03-19 14:48  optilux_v0.1\Optilux_files\nmod.m
     文件        7434  2009-03-19 14:48  optilux_v0.1\Optilux_files\printfield.m
     文件        5419  2009-03-19 14:48  optilux_v0.1\Optilux_files\saddle.c
     文件        1842  2009-03-19 14:48  optilux_v0.1\Optilux_files\fastshift.m
     文件        1644  2009-03-19 14:48  optilux_v0.1\Optilux_files\lpfilter.m
     文件        2034  2009-03-19 14:48  optilux_v0.1\Optilux_files\mdoc.m
     文件        2774  2009-03-19 14:48  optilux_v0.1\Optilux_files\ber2q.m
     文件        8443  2009-03-19 14:48  optilux_v0.1\Optilux_files\lasersource.m
     文件        4461  2009-03-19 14:48  optilux_v0.1\Optilux_files\optfilter.m
     文件        3076  2009-03-19 14:48  optilux_v0.1\Optilux_files\mz_modulator.m
     文件        3511  2009-03-19 14:48  optilux_v0.1\Optilux_files\pat_decoder.m
     文件          73  2008-11-25 11:12  optilux_v0.1\Optilux_files\.directory
     文件        2335  2009-03-19 14:48  optilux_v0.1\Optilux_files\chan_delay.m
     文件        3114  2009-03-19 14:48  optilux_v0.1\Optilux_files\pat_encoder.m
     文件        1515  2009-03-19 14:48  optilux_v0.1\Optilux_files\comp_mex.m
     文件       27580  2009-03-19 14:48  optilux_v0.1\Optilux_files\ber_kl.m
     文件        1792  2009-03-19 14:48  optilux_v0.1\Optilux_files\fprintfmsg.m
     文件        4891  2009-03-19 14:48  optilux_v0.1\Optilux_files\corrdelay.m
     文件       12044  2009-03-19 14:48  optilux_v0.1\Optilux_files\best_sp.m
     文件        4319  2009-03-19 14:48  optilux_v0.1\Optilux_files\pow2phi.m
............此处省略551个文件信息

评论

共有 条评论