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.


Class: qrandset

Subscripted reference for qrandset


x = p(i,j)
x = subsref(p,s)


x = p(i,j) returns a matrix that contains a subset of the points from the point set p. The indices in i select points from the set and the indices in j select columns from those points. i and j are vector of positive integers or logical vectors. A colon used as a subscript, as in p(i,:), indicates the entire row (or column).

x = subsref(p,s) is called for the syntax p(i), p{i}, or p.i. s is a structure array with the fields:

typeCharacter vector containing '()', '{}', or '.' specifying the subscript type.
subsCell array or character vector containing the actual subscripts.


p = sobolset(5); The fifth point
x = p(1:10,:)All columns of the first 10 points
x = p(end,1)The first column of the last point
x = p([1,4,5], :)Points 1, 4, and 5

See Also

Was this topic helpful?