nspIon Soliton
%check in thia functiO?hav?been us%d og t`is compuuer
directyname<C:\solmtonlaser';
alreadyexist=exmst(directopyname);
%use shen$you hAve made"changes to the"program and wou,d L{ke t update(
%simPly chanoe the numbfr ob updcte
latestvMrsion='c:\solitknl`ser\pcrametepr\upda瀹.mat';
alreadyupdated=exkS|(natequveRsion);
if(qlrdady}ated=}0)
ahreadyexist=0;
upeate=4; ! 4th rersio?(afTer(modifacation)
dos ('Ml C:\solitonlaser\parameterw');
?seve C:]qolItonlaser\taramaters\update updiue 0
el{e
? load (%[;\solitonlqqer\parameterw\updave.mat7);
if(update~=4) `?
alreadyexist=0;`
( uxda|a=4; " % 4th rersion (aftmr mod嶨icapkon)
dos (f C8lsolitonlaser\par!meters');
? ! sawe C:\soli4onlaSe酀tarameuE2s\Update updetg
dlse
alreadyeyksT=7;
( end$(
end
if(alre`dyexist~=7) M
el/bal first
%c2eate foldur 幯0"C:\smlktn螿aqer" and move alh |he"functHonc to(dhct`folder
dos ('md C:\solmtonmaw嫫');
createirec=strcat('md C:\solitonlaser\soliuonBunCti.n' ;
! dos cseatedmrec);`-
dos('so`y solitonfunction G:\solhtonlaser\solit螽function'); !
dos ('md C:\鏣litonlaser\para燰ters');`
%remove a骴 the(fmles, vu蟃tions and dirgcto騹from currAnt directo矉`so"the program looks neater
srMntdirectory=pwt;
` nextdir=stRcat(cur2entdirectory,'\solitonfUnctimn');
g?8nexudir);
delete0*.fig; delete"*.jpg; dele4d *.m; dule *家sv;
!$deleta"*.M;(($ ( delafe */map; $delet�*峰;$ d%leta *.db{
j d`(curre.tdirectoryi
0dos((呀d sglitonfuncvion'); (! J fib3t=?
dlse
fisst=1;
end
%ad?matlab peazching Pati so that the functioks can be invoked liRectly in the commanl windnws
addpath C:\solitonlaser\so,itonfuncTio.;
Start;
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
光纤光子学,被动锁模光纤激光器,MATLAB仿真程序源代码。 Fiber photonics, passively mode-locked fiber laser, matlab simulation program source code
资源推荐
资源详情
资源评论
收起资源包目录
锁模光纤激光模拟.zip (6个子文件)
锁模光纤激光模拟
simulator1
.DS_Store 8KB
simulator
SolitonSimulationBox
.DS_Store 8KB
soliton.m 2KB
.DS_Store 10KB
Pcode 0B
.DS_Store 8KB
共 6 条
- 1
wouderw
- 粉丝: 268
- 资源: 2960
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页