I am using this pcg function in matlab. However it outputs the iteration message like this
pcg converged at iteration 5 to a solution with relative residual 9.3e-07.
I want to suppress this message. I have found that I can suppress this message with the flag option in the output. So if I do something like this
[x flag] = pcg(...)
it suppresses the output. However, I cannot do that in my case. Is there any other way. When I went through the code of pig, I could see that it prints the message using itermsg function. Is there any way to suppress this function?