From: chaitanya on
Hi all.. I have an function file called"sunposition" that outputs the position of the sun in terms of azimuth & elevation. *imp* The function doesn't need any inputs. I have tried timer function but didn't work. My code looks like this :
t=timer;
set(t,'executionmode','fixedrate');
set(t,'period',10);
set(t,'timerfcn',@sun_position_modified);
start(t)
when i ran this i got the following error:
??? Error while evaluating TimerFcn for timer 'timer-1'
Too many input arguments.
I have gone through previous threads that dealt with the same problem, but I didn't understand. Please tell me how to get it running.
Thanks!!