runpf error - Unrecognized function or variable 'runpf'.

조회 수: 24(최근 30일)
k heindl
k heindl 2021년 4월 7일
댓글: AquilesC 2021년 7월 2일
When I runpf I get Unrecognized function or variable 'runpf'.
>> case5
ans =
struct with fields:
version: '2'
baseMVA: 100
bus: [5×13 double]
gen: [5×21 double]
branch: [6×13 double]
gencost: [5×6 double]
>> result = runpf('case5')
Unrecognized function or variable 'runpf'.
Did you mean:
>> result = run('case5')
  댓글 수: 1
AquilesC 2021년 7월 2일
Maybe you need to install the matpower script. Find “insta_matpower.m” function script in the folder where the application you have kept, and you shall be to apply "Run: install_matpower". Next, you’ll see a matpower installation options menu, and you shall have to select “do modify the MATLAB patch, but only temporarily” and go with the installation process.
Now you will be able to run the operators: (runpf (‘case…’) and runopf (‘case…’) in the command window.

댓글을 달려면 로그인하십시오.

채택된 답변

Monisha Nalluru
Monisha Nalluru 2021년 4월 22일
From my understanding there is no built function in MATLAB called runpf.
There is function called runperf which runs set of tests and measure the performance.
If runpf is a user defined function, when you can calling the function make sure the function is either in MATLAB path or defined in current directory.
Use path function to add path to MATLAB search directory.

추가 답변(0개)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by