Borrar filtros
Borrar filtros

Error printing double format value

14 visualizaciones (últimos 30 días)
DONGUK KIM
DONGUK KIM el 21 de Jun. de 2020
Respondida: madhan ravi el 21 de Jun. de 2020
Hi I'm having a problem right now using print() to print double format value. The problem occured in a longer code but since then I realized it was happening for the print() function. The code
a = 1;
print(a)
gives the error:
Error using checkArgsForHandleToPrint
Handle input argument contains nonhandle values.
Error in checkArgsForHandleToPrint
Error in print>LocalCreatePrintJob (line 101)
handles = checkArgsForHandleToPrint(0, varargin{:});
Error in print (line 38)
[pj, inputargs] = LocalCreatePrintJob(varargin{:});
Error in test (line 2)
print(a)
Any way to solve this? Thanks.

Respuesta aceptada

madhan ravi
madhan ravi el 21 de Jun. de 2020
fprintf('%d', a)
doc fprintf

Más respuestas (0)

Categorías

Más información sobre Variables en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by