What does the error `Error in checkArgsF​orHandleTo​Print` mean?

208 views (last 30 days)
What does the error:
Error using checkArgsForHandleToPrint
Handle input argument contains nonhandle values.
Error in checkArgsForHandleToPrint
Error in print>LocalCreatePrintJob (line 97)
handles = checkArgsForHandleToPrint(0, varargin{:});
Error in print (line 38)
[pj, inputargs] = LocalCreatePrintJob(varargin{:});
if possible, how does one fix it too would be nice.
  3 Comments
Kalyan
Kalyan on 25 Jan 2023
A=[1,2,3,4,5,6,7,7,7];
c=unique(A)
print(A);
same error
Error using checkArgsForHandleToPrint
Handle input argument contains nonhandle values.
Error in checkArgsForHandleToPrint
Error in print>LocalCreatePrintJob (line 97)
handles = checkArgsForHandleToPrint(0, varargin{:});
Error in print (line 38)
[pj, inputargs] = LocalCreatePrintJob(varargin{:});
Rami A
Rami A on 7 Apr 2023
Hi Kalyan, I think you meant to use disp(A); instead of print(A);.

Sign in to comment.

Answers (2)

Nathan Daubenmier
Nathan Daubenmier on 22 Jan 2021
Try using :
fprintf('Info you are trying to print: %f', data_name);
rather than:
print('Info you are trying to print: %f', data_name);
Hope this helps!

mengqiu ren
mengqiu ren on 28 Sep 2018
I have the same question.Have you solved it?

Categories

Find more on Entering Commands in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!