Can anybody tell me that how to use the print command in matlab?
As i want to get the data from the textbox and print that particular data. not the whole figure.
Please anybody help..
No products are associated with this question.
Let h be the handle of the uicontrol of style Text. Then
h_handle = handle(h); h_image = h_handle.getPrintImage;
At this point, h_image will be an RGB array containing a rendered copy of the text. You can now figure() a new figure, image() h_image into the new figure, and print() the new figure.
You might wish to consider, however, using imwrite() on h_image to save it to an image file that you can print using your system utilities.
I have my doubts that any of this is what you really want to do, but...