Hello, This is the function I have created function [R] = HydraulicRadius(W)
% ........
for D = 0.5:0.01:1.1R=(W*D)/(W+2*D);endend
This is my input in the command window.
>> W=112.78; >> function [R] = HydraulicRadius(W)
This is the output I get
??? function [R] = HydraulicRadius(W) |Error: Function definitions are not permitted in this context.
I'm not really sure why I am getting this error message. Any help would be greatly appreciated!
Best Answer