when i draw a figure and when i want to copy the figure from Edit/copy figure , matlab have this error"??? Attempt to execute SCRIPT print as a function:

when i draw a figure and when i want to copy the figure from Edit/copy figure , matlab have this error
??? Attempt to execute SCRIPT print as a function:
C:\Users\nima\Documents\MATLAB\print.m
Error in ==> editmenufcn at 76
uimenufcn(hfig, 'EditCopyFigure'):
what am i doing??

Answers (1)

You created your own "print.m" routine that is interfering with printing / copying. You should look at your file C:\Users\nima\Documents\MATLAB\print.m and consider renaming it.

1 Comment

Shadowing built-in or toolbox functions leads to problems frequently. Although I have a tool to catch overlapping function names, I do not assume that it is useful to publish it in the FEX: I assume, that only advanced users would download it and especially they are not the target of this functions.

Sign in to comment.

Categories

Tags

Asked:

on 1 Feb 2013

Community Treasure Hunt

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

Start Hunting!