



下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、時間:2011.8.15剛解決了Advisor2002無法在高版本運行的問題,我在Matlab2008a和2010上都運行成功!修改步驟如下:將ADVISOR2002patchforR13.m拷進Advisor的文件目錄,如E:ProgramAdvisor2002下;在Matlab中將運行目錄也改為E:ProgramAdvisor2002;Matlab的CommandWindow窗口輸入ADVISOR2002patchforR13.m,可以以直接運行ADVISOR2002patchforR13.m,之后會看到Advisor的底層模塊被不斷更新;更新完成后,在CommandWindow窗口輸入a
2、dvisor,運行advisor2002,之后點continue,如果Matlab提示出錯,則找到出錯的文件,一般是“get_cycle_info.m”,將第25行的“break”改成“return”,保存后重新運行advisor2002;繼續(xù)找到出錯的地方,將break改成“return”;全部修改完后,advisor2002即可正確運行。如果第三步中更新出錯,則可先做第四步,再進行第三步,三四步交替來做,直到?jīng)]有提示錯誤。ADVISOR2002patchforR13.m文件內(nèi)容如下,大家可以新建個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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 培養(yǎng)跨行業(yè)技能的重要性計劃
- 七年級下冊《幾何圖形與圖文信息問題》課件與練習(xí)
- 2025年氣體摻混設(shè)備項目建議書
- 2025年中文信息處理平臺項目發(fā)展計劃
- 2025年衛(wèi)星數(shù)據(jù)采集系統(tǒng)項目發(fā)展計劃
- 2025年EMI屏蔽材料項目發(fā)展計劃
- 冷鏈物流溫度監(jiān)控實施細節(jié)
- 電影制作與發(fā)行合作框架
- 2025年活性白土項目建議書
- 案場物業(yè)經(jīng)理年終工作總結(jié)
- 北師大版五年級下冊數(shù)學(xué)早讀課所背知識點
- 實驗室儀器設(shè)備驗收單
- 特殊教育概論第二版PPT完整全套教學(xué)課件
- 高教社高職國際英語 進階綜合教程 第2冊 PPT課件高職國際英語進階教程第2 冊unit1課文原文和譯文
- 病理科各項制度匯編樣本
- 費用通用報銷單
- PFMEA-沖壓過程模板
- 高中體育足球教學(xué)教案 全冊
- 計算機視覺PPT完整全套教學(xué)課件
- 第五章-公眾責(zé)任保險課件
- 口內(nèi)數(shù)字化印模
評論
0/150
提交評論