Full factorial

Version 1.2.0.0 (864 Bytes) by Bhaskar
It gives full factorial design matgrix of any levels(more than 2) of any variables (minimum 2)
1.4K Downloads
Updated 20 Nov 2008

No License

This script is similar to fullfact, however instead of number of levels, value of levels are required as input
usage: des_mat = full_fact([-1 1],[100 200 300],[1:4]);

arguments: (input)
x1,x2, x3- variable levels either in row or column vector. These are
not number of levels but the levels itself

arguments: (output)
des_mat - mxn m= total number of designs (product of all levels) and
n is number of variables
The first column shows all the first variable levels, second
column shows second variable levels and so on.

Example usage:
x1=[-1 1];x2=[100:100:300];
des_mat = full_fact(x1,x2) % OR
des_mat = full_fact([-1 1],[100:100:300])
des_mat =
-1 100
-1 200
-1 300
1 100
1 200
1 300

Cite As

Bhaskar (2024). Full factorial (https://www.mathworks.com/matlabcentral/fileexchange/22129-full-factorial), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: fullfac_2l(n_var)

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

modified tags

1.1.0.0

.

1.0.0.0