Don't want to display results on command window

9 ビュー (過去 30 日間)
Ali Raza
Ali Raza 2022 年 8 月 25 日
回答済み: Walter Roberson 2022 年 8 月 25 日
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.

採用された回答

Walter Roberson
Walter Roberson 2022 年 8 月 25 日
Change
Losses =runpf(mpc);
to
evalc('Losses =runpf(mpc);');

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeController Creation についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by