MATLAB Answers

Error using "light('Position', [0 0 0], 'Style', 'local')"

1 view (last 30 days)
Mehdi
Mehdi on 30 Dec 2015
Commented: Mehdi on 16 Apr 2016
Hi,
I'm using this code to create a light source that emanates light to all directions:
light('Position', [0 0 0], 'Style', 'local')
but I receive the following error (MATLAB 2015a):
Error using light
Too many input arguments.
Error in ThreeDsim_GUI_ThreeDsim_GUI_OpeningFcn (line 276)
light('Position', [0 0 0], 'Style', 'local')
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in ThreeDsim_GUI (line 43)
gui_mainfcn(gui_State, varargin{:});
The format is exactly according to the Help but I can't find out the reason for error. I'd be grateful if you could help.
  2 Comments
Mehdi
Mehdi on 16 Apr 2016
You were right. There was a file named "light" in the folder. I renamed it and now the problem is solved. Thank you!

Sign in to comment.

Answers (1)

Tags

Community Treasure Hunt

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

Start Hunting!