![]() ![]() ![]() With respect to the above proposed code, you can set the a Monospaced font (e. If you use Monospaced font such as, for example, Courier, Courier New, Lucida Console you can obtain the dsesired alignment.Īt the contrary, if you use proportional fonts you will lose the alignment since different characters occupies different amount of horizontal space. In the textbox represents the numbers are represented as a string even if in the generation of the string you properly align the number, the representation of the string depends on the font selected. % Set the message box figure HandleVisibility to onĮdit to answer the commenrt about the alignment of the text This is the implementation: % Create the message box use the function print to print the message box figure as an image.set the message box figure HandleVisibility to on (by default it is set to callback.use the findobj function to get the handle of the pushbutton.You can use the msgbox function to display the matrix in a figure the matrix has to be converted to string with the functino num2str, then you have to:
0 Comments
Leave a Reply. |