下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、時(shí)間:2011.8.15剛解決了Advisor2002無(wú)法在高版本運(yùn)行的問(wèn)題,我在Matlab2008a和2010上都運(yùn)行成功!修改步驟如下:將ADVISOR2002patchforR13.m拷進(jìn)Advisor的文件目錄,如E:ProgramAdvisor2002下;在Matlab中將運(yùn)行目錄也改為E:ProgramAdvisor2002;Matlab的CommandWindow窗口輸入ADVISOR2002patchforR13.m,可以以直接運(yùn)行ADVISOR2002patchforR13.m,之后會(huì)看到Advisor的底層模塊被不斷更新;更新完成后,在CommandWindow窗口輸入a
2、dvisor,運(yùn)行advisor2002,之后點(diǎn)continue,如果Matlab提示出錯(cuò),則找到出錯(cuò)的文件,一般是“get_cycle_info.m”,將第25行的“break”改成“return”,保存后重新運(yùn)行advisor2002;繼續(xù)找到出錯(cuò)的地方,將break改成“return”;全部修改完后,advisor2002即可正確運(yùn)行。如果第三步中更新出錯(cuò),則可先做第四步,再進(jìn)行第三步,三四步交替來(lái)做,直到?jīng)]有提示錯(cuò)誤。ADVISOR2002patchforR13.m文件內(nèi)容如下,大家可以新建個(gè)m文件,將下面的內(nèi)容復(fù)制粘貼并保存為ADVISOR2002patchforR13.m即可。%t
3、hisfilewillupdatealltheblockdiagramsinthemodelsdirectoryinADVISOR%sothattheywillworkinMathworksRelease13.ThisassumesthatyouhaveADVISOR2002%anditisalreadyincludedinyourMatlabpathwhichisdoneautomaticallywhenyoutype%advisoratthecommandprompt.%placethisfileinyourcurrentworkingdirectoryinMatlabandtypeits
4、name.%Hereswhatwepostedontheadvisorcommunitywebsiteregardingthiserror.%Aug-30-20027:22AM%RegardingthebooleantypeprobleminR13:Release13ofMatlabhasintroduced%anewtypecalledlogical.Theproblemisintheblockdiagramsintheaccessory%loadsmaskedsubsystem.GotoBD_PARforinstanceandclickonmechanicalaccessoryloads%
5、thenclickontheMechanicalAccessoryLoadsV2block.Youwillseeamaskwindowpop%open.Atthetop,youwillseethenotfunctionused.Inrelease12andearlier,this%functionreturneda1ora0fortrueandfalse.Nowitreturnsanewtype,logical.This%iscausingtheproblems.Tofixtheproblem,multiplybyatypechange1(whichcauses%todouble).Thats
6、houldfixthelogicalerrors.clearall%changedirectoriestothemodelsdirectorycd(strrep(which(advisor.m),advisor.m,models)%getthelistofeverythinginthemodelsdirectorydir_list=dir;%Fortheitemsinthedirectorythatare.mdlfiles,dothefollowingk=1;fori=1:length(dir_list)ifisempty(strfind(dir_list(i).name,%suppressw
7、arningswarningoff.mdl)open_system(dir_list(i).name);system=find_system(strrep(dir_list(i).name,RegExp,on,Name,MechanicalAccessorynLoadsv2%ifthesysteminquestionisfounddothefollowingifisempty(system)%fixthesystemname.mdl,),);z=isspace(system1);makesuretheyarejustspacesforj=1:length(system1);%findspace
8、sandcarriagereturnsandifz(j)=1;system1(j)=endendsettings=get_param(system,maskvalues);ifstrcmp(settings11,alreadyfixednot(ess_on)%checktoseeifsettings11=realnumberinsteadofabooleannot(ess_on)*1%addthe*1tomakeitaset_param(system1,maskvaluesmaskvalues,settings1)%setthe.mdl,);%save%keeptrackofwhat.mdl,)neededtobeupdated)save_system(strrep(dir_list(i).name,theblockdiagramsaved_systemsk,1=dir_list(i).name;modelswereupdatedk=k+1;endendclose_system(strrep(dir_list(i).name,endenddisp(ADVISOR2002updateforittoruninR13ofMatlab)ifexist(sa
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年拍賣師資格考試題庫(kù)大全(含答案)
- 2024年企業(yè)人力資源管理師(三級(jí))考前沖刺備考速記速練300題(含答案)
- 2025年度個(gè)人科技產(chǎn)品代理傭金協(xié)議
- 2025年度鋼材貿(mào)易結(jié)算與融資服務(wù)合同
- 2025年度個(gè)人債務(wù)轉(zhuǎn)讓與債務(wù)清理執(zhí)行協(xié)議4篇
- 網(wǎng)絡(luò)素養(yǎng)教育與小學(xué)生信息保護(hù)
- 二零二五年度新型建筑材料OEM研發(fā)與市場(chǎng)推廣協(xié)議3篇
- 2025年度個(gè)人地皮使用權(quán)轉(zhuǎn)讓與土地增值收益分配協(xié)議2篇
- 二零二五年度金融科技產(chǎn)品安全審查合同3篇
- 科技驅(qū)動(dòng)的綠色家居裝飾材料
- 七年級(jí)下冊(cè)-備戰(zhàn)2024年中考?xì)v史總復(fù)習(xí)核心考點(diǎn)與重難點(diǎn)練習(xí)(統(tǒng)部編版)
- 2024年佛山市勞動(dòng)合同條例
- 污水管網(wǎng)規(guī)劃建設(shè)方案
- 城鎮(zhèn)智慧排水系統(tǒng)技術(shù)標(biāo)準(zhǔn)
- 采購(gòu)管理制度及流程采購(gòu)管理制度及流程
- 新修訂藥品GMP中藥飲片附錄解讀課件
- 五年級(jí)美術(shù)下冊(cè)第9課《寫(xiě)意蔬果》-優(yōu)秀課件4人教版
- 節(jié)能降耗課件
- 尼爾森數(shù)據(jù)市場(chǎng)分析報(bào)告
- 氧氣霧化吸入法
- 領(lǐng)導(dǎo)干部個(gè)人有關(guān)事項(xiàng)報(bào)告表(模板)
評(píng)論
0/150
提交評(píng)論