Addition of spouse name in no more one day job as there are no miscellaneous services in the new rules. Now if you want to include the spouse name in the passport you must apply for the Reissue of Passport with the following document.
Tuesday, May 7, 2013
Thursday, April 18, 2013
How to calculate mean wind direction - average of circular function - Matlab
The calculation of mean wind direction is not just taking the average as they are in radial co-ordinates. In this I will show you how you can calculate mean wind direction with on line formula.
Please note, all the angles are in degrees and Matlab degree trigonometric functions (sind, cosd and atand) have been used in the calculations. The formula is based on the calculation of the mean of the cosines and sines and the taking the arctangent of their ratio.
%Lets say wd is the wind direction array
wd=[0 10 180 170]
%then mean wind direction is given by
meanwd=atand(mean(sind(wd))/mean(cosd(wd)))
% you can use mod function to avoid negative wind direction if north is represented by 0 degree.
meanwd=mod(meanwd,360)
You will get NaN if all the wind directions opposite to each other.
For example wd=[0 90 180 270] or wd=[0 180 0 180] or wd=[1 181]
Please note, all the angles are in degrees and Matlab degree trigonometric functions (sind, cosd and atand) have been used in the calculations. The formula is based on the calculation of the mean of the cosines and sines and the taking the arctangent of their ratio.
%Lets say wd is the wind direction array
wd=[0 10 180 170]
%then mean wind direction is given by
meanwd=atand(mean(sind(wd))/mean(cosd(wd)))
% you can use mod function to avoid negative wind direction if north is represented by 0 degree.
meanwd=mod(meanwd,360)
You will get NaN if all the wind directions opposite to each other.
For example wd=[0 90 180 270] or wd=[0 180 0 180] or wd=[1 181]
Posted by
vicky
at
3:25 AM
Subscribe to:
Posts (Atom)
Popular
- How to add or endorse Spouse/ Husband /Wife name of the passport
- Chanakya TV serial, online on youtube, Vol 1-8, All episodes 1-47
- How to invite wife or spouse to Italy
- Matlab boxplot: how to change the line width (LineWidth) and color of the lines?
- int2str and str2num in fortran, How convert string to integer number of vice versa.