MATLAB Answers

## How to take haltonset numbers randomly

Asked by sita

### sita (view profile)

on 7 May 2013

Hi, I would like to create generator takes input as halton set and gives numbers randomly from that.I think below code helps me to do the same.Please give me to use (example) below code.

```   haltonDesign = CreateDesign( inputs, 'Type',...
'Halton Sequence', 'Name', 'Halton' );
haltonDesign = Generate( haltonDesign, 'NumberOfPoints', 50 );```

Thanking you, Sita.

## 1 Answer

### Tom Lane (view profile)

Answer by Tom Lane

### Tom Lane (view profile)

on 10 May 2013

I am not aware of a CreateDesign function. Where do you find it?

Perhaps you can generate a Halton set of the desired size, then generate random row numbers to index into it.

Walter Roberson

### Walter Roberson (view profile)

on 10 May 2013
```model = mbcmodel.CreateModel(appropriate parameters)
CreateDesign(model, appropriate parameters)
```

http://www.mathworks.com/products/mbc/examples.html?file=/products/demos/shipping/mbc/mbcOptimalDoeCmdLine.html

or

```OperatingPointInputs = mbcmodel.modelinput(appropriate parameters)
OperatingPointDesign = CreateDesign(OperatingPointInputs);
```

http://www.mathworks.com/products/mbc/examples.html?file=/products/demos/shipping/mbc/mbcPointByPointCmdLine.html

There might be others.

Tom Lane

### Tom Lane (view profile)

on 10 May 2013

Thanks. I'm not so familiar with the contents of the Model-Based Calibration Toolbox.

#### Join the 15-year community celebration.

Play games and win prizes!

Learn more

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

### Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

### MATLAB Academy

New to MATLAB?

Learn MATLAB today!