How to enter the following equation into the MatLab command
How to enter the following equation into the MatLab command window:
How to enter the following equation into the MatLab command window: g(f) = 1/squareroot f + 2.0 log_10 (0.0000015/3.7(0.005) + 2.51/13743 squareroot f)Solution
% matlab code to enter equation
f = 1;
g = 1/sqrt(f) + 2.0*log((0.0000015/(3.7*0.005)) + (2.51/(13743*sqrt(f))));
disp(g);
%output: -15.481
