runpf error - Unrecognized function or variable 'runpf'.

20 views (last 30 days)
k heindl
k heindl on 7 Apr 2021
Commented: AquilesC on 2 Jul 2021
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 Comment
AquilesC on 2 Jul 2021
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.

Sign in to comment.

Accepted Answer

Monisha Nalluru
Monisha Nalluru on 22 Apr 2021
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.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!