script file VS command window

Dear Friends,
When I runt the code in script ,I receive error as below but when I copy and paste the codes in command window it works correctly . What is the reason ?
Error using project (line 42) Expected H to be a vector of handles to one or more MATLAB graphics objects.

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Asked:

on 29 May 2020

Community Treasure Hunt

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

Start Hunting!