Hello, plotPolarAnimation.m requires Financial Toolbox, but I think you can remove this dependency fairly easily.
Line 81: angle = daysIntoYear * (2*pi/yeardays(date.Year)); can be rewritten as follows:
numYearDays = days(datetime(date.Year+1,1,1) - datetime(date.Year,1,1));
angle = daysIntoYear * (2*pi/numYearDays);
Line 85: prev_angle = prev_daysIntoYear * (2*pi/yeardays(prev_date.Year)); can be changed to
numYearDays = days(datetime(prev_date.Year+1,1,1) - datetime(prev_date.Year,1,1));
prev_angle = prev_daysIntoYear * (2*pi/numYearDays);
With those changes, I was able to run your Live Script without error, even though I don't have Financial Toolbox.
Hello, plotPolarAnimation.m requires Financial Toolbox, but I think you can remove this dependency fairly easily.
Line 81:
angle = daysIntoYear * (2*pi/yeardays(date.Year));can be rewritten as follows:Line 85:
prev_angle = prev_daysIntoYear * (2*pi/yeardays(prev_date.Year));can be changed toWith those changes, I was able to run your Live Script without error, even though I don't have Financial Toolbox.