Be the first to rate this file! 241 downloads (last 30 days) File Size: 1.99 KB File ID: #22129

Full factorial

by Bhaskar

 

17 Nov 2008 (Updated 20 Nov 2008)

It gives full factorial design matgrix of any levels(more than 2) of any variables (minimum 2)

I am interested in collaboration

Download Now | Watch this File

File Information
Description

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  

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
18 Nov 2008 .
20 Nov 2008 modified tags

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com