最简单的方法教你装matpower
生活随笔
收集整理的這篇文章主要介紹了
最简单的方法教你装matpower
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、下載matpower安裝包,官網為matpower官方下載地址https://matpower.org/
2、將下載后的安裝包解壓到桌面上,并將安裝包復制到matlab安裝目錄下的toolbox里。
3、運行matlab,在matlab的運行目錄下找到剛剛復制進toolbox里的安裝包文件夾,并運行里面的install_matpower.m。或輸入install_matpower 回車也可。
4、出現以下情況,輸入3,回車。
5、出現以下情況,輸入N,回車。
Use the following command to add MATPOWER to your MATLAB path:addpath( ...'D:\Matlab\toolbox\matpower7.1\lib', ...'D:\Matlab\toolbox\matpower7.1\lib\t', ...'D:\Matlab\toolbox\matpower7.1\data', ...'D:\Matlab\toolbox\matpower7.1\most\lib', ...'D:\Matlab\toolbox\matpower7.1\most\lib\t', ...'D:\Matlab\toolbox\matpower7.1\mp-opt-model\lib', ...'D:\Matlab\toolbox\matpower7.1\mp-opt-model\lib\t', ...'D:\Matlab\toolbox\matpower7.1\mips\lib', ...'D:\Matlab\toolbox\matpower7.1\mips\lib\t', ...'D:\Matlab\toolbox\matpower7.1\mptest\lib', ...'D:\Matlab\toolbox\matpower7.1\mptest\lib\t', ...'D:\Matlab\toolbox\matpower7.1\extras\maxloadlim', ...'D:\Matlab\toolbox\matpower7.1\extras\maxloadlim\tests', ...'D:\Matlab\toolbox\matpower7.1\extras\maxloadlim\examples', ...'D:\Matlab\toolbox\matpower7.1\extras\misc', ...'D:\Matlab\toolbox\matpower7.1\extras\reduction', ...'D:\Matlab\toolbox\matpower7.1\extras\sdp_pf', ...'D:\Matlab\toolbox\matpower7.1\extras\se', ...'D:\Matlab\toolbox\matpower7.1\extras\smartmarket', ...'D:\Matlab\toolbox\matpower7.1\extras\state_estimator', ...'D:\Matlab\toolbox\matpower7.1\extras\syngrid\lib', ...'D:\Matlab\toolbox\matpower7.1\extras\syngrid\lib\t', ...'-end' );Would you like to save this command to a file? [Y or N] (default = N) :6、將上面的代碼 從 addpath( … 一直復制到 ‘-end’ ) , 回車運行一遍,即可完成安裝。 并輸入 test_matpower 回車,進行測試。測試結果等待幾十秒鐘,各項ok后,顯示如下:
總結
以上是生活随笔為你收集整理的最简单的方法教你装matpower的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: XSS扫描器编写思路
- 下一篇: 测试环境是什么?怎样搭建出好的测试环境?