I would like to extract the warning message, that a function throws. For example
syms xsolve(sin(1/sqrt(x)))
generates the warning:
Warning: The solutions are parametrized by the symbols:k = Z_
I want to put the message to a variable programmatically. How can I make this? Thanks.
P.s. I know about lastwarn but I need to handle several warnings not just the last one.
Best Answer