Page 1 of 1

Clear Matlab Unit report

Posted: 17 February 2017, 08:42
by King
How to clear the matlab output report to hide some value calculated in the process?

Re: Clear Matlab Unit report

Posted: 17 February 2017, 14:27
by jasper
I am not sure what you mean. If you want to clear it as a part of a calculation of the unit, just set it to an empty string.

Or would you want to clear it at some other point in time?

Re: Clear Matlab Unit report

Posted: 18 February 2017, 02:20
by King
jasper wrote:I am not sure what you mean. If you want to clear it as a part of a calculation of the unit, just set it to an empty string.

Or would you want to clear it at some other point in time?
I mean that when calculation is done, the Matlab Report page will show all results in the report page, and couldn't be clear until next calculation.But I don't want to show some result to others,will it possiable to hide my calculation result in the Matlab Report page in the unit?

Re: Clear Matlab Unit report

Posted: 18 February 2017, 02:28
by King
jasper wrote:I am not sure what you mean. If you want to clear it as a part of a calculation of the unit, just set it to an empty string.

Or would you want to clear it at some other point in time?
Oh, now I know what to solve it. Only add " ;" at the end of the script and Matlab will not show the result of that line

Re: Clear Matlab Unit report

Posted: 18 February 2017, 08:19
by jasper
That is correct, ; will suppress line output in the output log. However, this is of course not a very 'secure' way of hiding the result - any user can remove the ;.