Print an image in Matlab GUI

2 次查看(过去 30 天)
Eric Letsolo
Eric Letsolo 2012-11-17
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)

回答(1 个)

Arthur
Arthur 2012-11-17
I guess it should be
smapleimage = imread('image.png');
printdlg(smapleimage)
  6 个评论
Eric Letsolo
Eric Letsolo 2012-11-17
I can print a figure using printdlg(handles.Fig) Is it possible to print out an image from Matlab GUI

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by