日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Matlab中MatPower模块的安装流程

發布時間:2023/12/31 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Matlab中MatPower模块的安装流程 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Matlab中MatPower模塊的安裝流程


Matpower的安裝比較簡單
第1步:到官網(https://matpower.org/)下載最新版Matpower文件,并解壓縮,找到含有install_matpower.m的matpower文件夾

第2步:找到Matlab的安裝目錄下的toolbox文件夾。將第一步中的matpower文件夾拷貝至toolbox文件夾下(進行這步之前確保之前沒有安裝過matpower)

第3步:將matlab的工作區切換到剛才拷貝到toolbox中的matpower文件夾中。

第4步:輸入install_matpower,回車

第5步:系統提示

MATPOWER Installation Options:1. Do NOT modify the MATLAB path(just generate the required ADDPATH commands)2. DO modify the MATLAB path, but only temporarily(you will have to do it again next time you run MATLAB)3. DO modify the MATLAB path, and SAVE the updated path(so you will not have to do it again next time you run MATLAB)Please enter your selection [1, 2, 3] (default = 1) :

輸入1后,
系統提示

Use the following command to add MATPOWER to your MATLAB path:addpath( ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\lib', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\lib\t', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\data', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\mips\lib', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\mips\lib\t', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\most\lib', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\most\lib\t', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\mptest\lib', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\mptest\lib\t', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\maxloadlim', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\maxloadlim\tests', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\maxloadlim\examples', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\misc', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\reduction', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\sdp_pf', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\se', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\smartmarket', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\state_estimator', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\syngrid\lib', ...'D:\Program Files\MATLAB\R2019b\toolbox\matpower7.0\extras\syngrid\lib\t', ...'-end' ); Would you like to save this command to a file? [Y or N] (default = N) :```

輸入N,回車后
系統提示

-------------------------------------------------------------------Once you have added the required directories to your MATLAB path MATPOWER will be installed and ready to use.You may want to begin by typing: mpver to see the list of installed MATPOWER related software versions.Or to run the MATPOWER test suite to ensure everything is working correctly, type: test_matpower```

第6步:添加路徑
復制 addpath(…一直到’-end’);
將復制的代碼直接在matlab命令行下粘貼運行一遍,即可完成安裝。

第7步:檢驗是否安裝成功
輸入test_matpower
如果成功,會出現如下字樣

All tests successful (9142 passed, 884 skipped of 10026) Elapsed time 76.34 seconds.

總結

以上是生活随笔為你收集整理的Matlab中MatPower模块的安装流程的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。