Cody

# Problem 2777. Rule of mixtures (composites) - either bound

Solution 566203

Submitted on 26 Jan 2015
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
%% Ef = 100; Em = 10; ff = 0.30; b_str = 'lower'; [Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff); assert(abs(Ec - 13.6986) < 1e-4)

Error: Undefined function 'b' for input arguments of type 'double'.

2   Fail
%% Ef = 100; Em = 10; ff = 0.22; b_str = 'L'; [Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff); assert(abs(Ec - 12.4688) < 1e-4)

Error: Undefined function 'b' for input arguments of type 'double'.

3   Fail
%% Ef = 100; Em = 10; ff = 0.15; b_str = 'Upper'; [Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff); assert(abs(Ec - 23.5) < 1e-4)

Error: Undefined function 'b' for input arguments of type 'double'.

4   Fail
%% Ef = 1000; Em = 10; ff = 0.30; b_str = 'Lower'; [Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff); assert(abs(Ec - 14.2248) < 1e-4)

Error: Undefined function 'b' for input arguments of type 'double'.

5   Fail
%% Ef = 1000; Em = 10; ff = 0.22; b_str = 'u'; [Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff); assert(abs(Ec - 227.8) < 1e-4)

Error: Undefined function 'b' for input arguments of type 'double'.

6   Fail
%% Ef = 1000; Em = 10; ff = 0.15; b_str = 'upper'; [Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff); assert(abs(Ec - 158.5) < 1e-4)

Error: Undefined function 'b' for input arguments of type 'double'.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!