Print an image in Matlab GUI

4 views (last 30 days)
Eric Letsolo
Eric Letsolo on 17 Nov 2012
How do you print an image from a printer in Matlab GUI? I get an error using the code below. Please help me.
Undefined function or variable 'smapleimage'.
smapleimage = imread('image.png');
printdlg(handles.smapleimage)

Answers (1)

Arthur
Arthur on 17 Nov 2012
I guess it should be
smapleimage = imread('image.png');
printdlg(smapleimage)
  6 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!