The comment mentions the parameters iT and t, but the function header does not show these parameters.
Either the code of the function or the comment must be wrong.
Also unclear: What is WindVel.MeanPull supposed to be?
You can find this function in the folder Velocity_RW_with_Mean.
function Vel = getWindSpeedT(WindVelNow,WindVel)
% %GETWINDSPEEDT returns the wind speed at the respective turbine(s)
% % ======================================================================= %
% % Random walk model with mean implementation
% % ======= Input ======
% % WindVel.Init = Mean velocity
% % WindVel.CholSig = Tn x Tn = col(Covariance Matrix)
% % WindVelNow = Current value
% % iT = Index/Indeces of the turbines
% % t = time of request
% % ======================================================================= %
% weigthedRandN = randn(1,length(WindVelNow));
% Vel = WindVelNow + (weigthedRandN*WindVel.CholSig)' + ...
% WindVel.MeanPull*(WindVel.Init - WindVelNow);
% end
The comment mentions the parameters
iTandt, but the function header does not show these parameters.Either the code of the function or the comment must be wrong.
Also unclear: What is
WindVel.MeanPullsupposed to be?You can find this function in the folder Velocity_RW_with_Mean.