Marco,

What you want to do is not currently possible simply by setting an option (and 
I consider this a bug worth fixing). But this is the great thing about 
open-source software, you can very trivially make a modification to suit your 
needs.

In your case, an easy fix would be to make a copy of runpf.m under a different 
name, and comment out the second call to printf() (line 357 in my current 
version), and then call this function instead of runpf().

-- 
Ray Zimmerman
Senior Research Associate
B30 Warren Hall, Cornell University, Ithaca, NY 14853  USA
phone: (607) 255-9645


> On Nov 3, 2014, at 10:29 AM, Simone Cochi <simoneco...@gmail.com> wrote:
> 
> I've never used it before but maybe the MP function printpf could fit
> your needs.
> 
> 
> 
> 2014-11-03 15:11 GMT+01:00 Marco Barbetta <marco.barbetta1...@gmail.com>:
>> Thank you for answers, but i'm looking for a way to avoid the
>> pretty-printing of results ONLY on command window, while i need to store the
>> results (pretty - printed) for each cycle in text (and .mat) files. I know
>> that results can be stored in the "results" struct, but i'd prefer another
>> copy in .txt files.
>> 
>> Is it possible?
>> 
>> Thanks,
>> 
>> Marco Barbetta
>> 
>> 2014-11-03 14:59 GMT+01:00 Simone Cochi <simoneco...@gmail.com>:
>>> 
>>> mpopt=mpoption('verbose',0,'out.all',0)
>>> 
>>> 
>>> 2014-11-03 14:51 GMT+01:00 Marco Barbetta <marco.barbetta1...@gmail.com>:
>>>> Dear collegues,
>>>> 
>>>> i'm implementing a code on MatLab, using MATPOWER, and i have to do a
>>>> huge
>>>> number of for-cycles: at the end of every cycle, i have to print the
>>>> results
>>>> on two files (.txt and .mat) in automatic, through the command below:
>>>> 
>>>> results = runpf(mpc,mpopt,['Risultati_step_' num2str(k)
>>>> '.txt'],['Risultati_step_' num2str(k) '.mat']);
>>>> 
>>>> At every cycle, MATPOWER prints the results also in the Command Window.
>>>> I'm
>>>> finding a way to avoid the pretty-printing of results on the Command
>>>> Window,
>>>> in order to visualize properly some warnings and "flags" that i have
>>>> positioned in the code.
>>>> 
>>>> Can you help me? I'm searching in the Manual (appendix C - MATPOWER
>>>> options)
>>>> but i could not find the answer, yet.
>>>> 
>>>> Best regards,
>>>> 
>>>> Marco Barbetta
>>> 
>> 
> 

Reply via email to