Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

set (RandStream)

Set random number stream property

Syntax

set(stream,'PropertyName',Value)
set(stream,'Property1',Value1,'Property2',Value2,...)
set(stream,A)
A = set(stream,'Property')
set(stream,'Property')
A = set(stream)
set(stream)

Description

set(stream,'PropertyName',Value) sets the property 'PropertyName' of the random stream stream to the value Value.

set(stream,'Property1',Value1,'Property2',Value2,...) sets multiple random stream property values with a single statement.

set(stream,A) where A is a structure whose field names are property names of the random stream stream sets the properties of stream named by each field with the values contained in those fields.

A = set(stream,'Property') or set(stream,'Property') displays possible values for the specified property of stream.

A = set(stream) or set(stream) displays or returns all writable properties of stream and their possible values.

Was this topic helpful?