berechne den mittelwert von a. a=[1.511102307000000e+09;2.862954597000000e+09;991052076] in matlab

To calculate the mean/average of the array a in MATLAB, you can use the mean function.

main.m
a = [1.511102307000000e+09; 2.862954597000000e+09; 991052076];
avg_a = mean(a);
disp(avg_a);
93 chars
4 lines

This will output the following value:

main.m
1.655385521000000e+09
22 chars
2 lines

The variable avg_a contains the mean value of the array a.

related categories

gistlibby LogSnag