필터 지우기
필터 지우기

Error printing double format value

조회 수: 14 (최근 30일)
DONGUK KIM
DONGUK KIM 2020년 6월 21일
답변: madhan ravi 2020년 6월 21일
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.

채택된 답변

madhan ravi
madhan ravi 2020년 6월 21일
fprintf('%d', a)
doc fprintf

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Variables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by