To calculate the mean of a variable in MATLAB for a certain age bin, you can follow these steps:
main.m34 chars2 lines
main.m25 chars2 lines
main.m30 chars2 lines
Here is a complete example:
main.m181 chars9 lines
This will calculate and display the mean value of the 'data' variable for the specified age bin (20-30 in this example).
gistlibby LogSnag