SPM
所属分类:matlab编程
开发工具:matlab
文件大小:41KB
下载次数:372
上传日期:2008-12-28 14:04:50
上 传 者:
finerain3
说明: 非线性光纤光学,自相位调制(spm)的matlab实现代码
(Nonlinear fiber optics, self-phase modulation (spm) to achieve the matlab code)
文件列表:
SPM\SPM\ChangeLog.txt (3411, 2006-09-14)
SPM\SPM\fig4_10.m (1348, 2006-02-08)
SPM\SPM\fig4_4.m (1058, 2008-10-29)
SPM\SPM\fig4_5.m (1087, 2006-02-08)
SPM\SPM\fig4_7.m (1590, 2006-02-08)
SPM\SPM\fig4_8.m (1589, 2006-02-08)
SPM\SPM\fwhm.m (2288, 2002-02-04)
SPM\SPM\gaussian.m (1195, 2006-02-08)
SPM\SPM\gpl.txt (18009, 2003-10-10)
SPM\SPM\Makefile (951, 2006-08-21)
SPM\SPM\mexopts-gcc-linux.sh (7990, 2006-02-02)
SPM\SPM\mexopts.bat (1894, 2006-01-30)
SPM\SPM\mexopts.sh (9994, 2006-08-21)
SPM\SPM\sechpulse.m (982, 2006-02-08)
SPM\SPM\solitonpulse.m (840, 2006-02-08)
SPM\SPM\ssprop.m (3107, 2006-02-06)
SPM\SPM\sspropc.c (14479, 2006-08-18)
SPM\SPM\sspropc.m (4149, 2006-02-06)
SPM\SPM\sspropv.m (9657, 2006-10-20)
SPM\SPM\sspropvc.c (29519, 2006-08-21)
SPM\SPM\sspropvc.m (5467, 2006-10-20)
SPM\SPM\stokes.m (160, 2006-08-23)
SPM\SPM\wspace.m (1116, 2006-02-04)
SPM\SPM (0, 2008-12-11)
SPM (0, 2008-12-17)
NOTES ON USING AND RECOMPILING SSPROPC UNDER LINUX
sspropc and the associated FFTW libraries were compiled using gcc
version 3.4.4 and Matlab version 7.0.4
In order to use the program, you must ensure that Matlab is using
the standard C libraries that are appropriate for this gcc version
3.4.4. Matlab is by default distributed with older (version 3.2)
versions of these run-time libraries, which will not work with
mex files compiled with later versions of GCC. Unfortunately,
Matlab will try to use the older library files instead of looking
for newer versions installed on your system.
There are three solutions to this problem:
(1) Matlab uses the run-time library file libgcc_s.so.1, which is
located in matlab program directory, under a subdirectory
called "glnx86" There is a README file located in this same
directory that explains how to replace the library file with the
latest version that is appropriate for your system. If you
follow these instructions, then you should be able to run and
recompile sspropc.
(2) If you do not want to tinker with files in the Matlab
installation directories, you may also manually force Matlab
to load the newer library files prior to execution. From the
shell used to launch Matlab, execute the following commands:
setenv LD_PRELOAD /usr/local/gcc/lib/current/libgcc_s.so.1
setenv LD_DIRECTORY_PATH /usr/local/gcc/lib
matlab &
Note: you may need to change the paths in the above commands
if your system keeps the gcc libraries in a different
location.
(3) Recompile the FFTW libraries and sspropc using an older
version of gcc (version 3.2.3 is the version that is
officially used by Matlab 7.0)
Here are some links that explain the problem:
http://newsreader.mathworks.com/WebX?14@897.haBVadZUNP2.0@.eef9f93
http://newsreader.mathworks.com/WebX?14@4.06Gca2cbD7k.0@.eeee1ce
http://newsreader.mathworks.com/WebX?14@173.UC6uaFvE2co.0@.ef10671
近期下载者:
相关文件:
收藏者: