matlab.net.ArrayFormat - Convert arrays in HTTP queries - MATLAB (original) (raw)
Main Content
Namespace: matlab.net
Convert arrays in HTTP queries
Description
Use an ArrayFormat
enumeration with thematlab.net.QueryParameter
class to control the format used to convert query values representing multiple values.
Enumeration Member Name | Description |
---|---|
csv | Format that generates a comma-separated list, such asparm=1,2,3 |
json | Format that generates a JSON-like array, such asparm=[1,2,3] |
php | Format that generates a name with brackets and multiple values, such asparm[]=1&[]=2&[]=3 |
repeating | Format that generates repeating name/value pairs, such asparm=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.
Version History
Introduced in R2016b