Main Content

matlab.net.ArrayFormat Class

Namespace: matlab.net

Convert arrays in HTTP queries

Description

Use an ArrayFormat enumeration with the matlab.net.QueryParameter class to control the format used to convert query values representing multiple values.

Enumeration Member NameDescription
csv

Format that generates a comma-separated list, such as parm=1,2,3

json

Format that generates a JSON-like array, such as parm=[1,2,3]

php

Format that generates a name with brackets and multiple values, such as parm[]=1&[]=2&[]=3

repeating

Format that generates repeating name/value pairs, such as parm=1&=2&=3

A query value is considered to contain multiple values when it is one of the following:

  • Nonscalar number, string, logical, or datetime (Each element is a value.)

  • m-by-n character array, where each row is interpreted as a string

  • Cell vector, where each element is a value

Query values, except for character arrays, with more than one dimension are not supported. In cell vectors, each element must be a scalar or character vector.

Class Attributes

Sealed
true

For information on class attributes, see Class Attributes.

Version History

Introduced in R2016b