Don't want to display results on command window
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ali Raza
am 25 Aug. 2022
Beantwortet: Walter Roberson
am 25 Aug. 2022
When I run the following code:
clc; clear all; close all;
mpc = loadcase(case33);
tie_switches = [33 34 35 36 37];
for i=1:length(tie_switches)
mpc.branch(tie_switches(i),11)=0;
end
Losses =runpf(mpc);
results are also showing on command window and saved in workspace in the struct name 'Losses'. But I don't want to display results on command window.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 25 Aug. 2022
Change
Losses =runpf(mpc);
to
evalc('Losses =runpf(mpc);');
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Controller Creation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!