Clear Matlab Unit report
Moderator: jasper
Clear Matlab Unit report
How to clear the matlab output report to hide some value calculated in the process?
Re: Clear Matlab Unit report
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?
Or would you want to clear it at some other point in time?
Re: Clear Matlab Unit report
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?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?
Re: Clear Matlab Unit report
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 linejasper 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?
Re: Clear Matlab Unit report
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 ;.