main content

creates value set and generates data -凯发k8网页登录

creates value set and generates data

since r2019b

description

use the and fixed.datagenerator objects to generate simulation inputs to test the full operating range of your designs.

creation

description

example

data = fixed.datagenerator(name, value) creates a datagenerator object with additional properties specified as name, value pair arguments.

properties

properties of the data to generate, specified as a object.

specifying a cell array of dataspecification objects produces a single datagenerator object for input to a system with the same number of inputs and in the same order as elements in the cell array.

maximum number of data points in generated data, specified as an integer-valued scalar. for more information, see .

data types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

object functions

get unique values from fixed.datagenerator object
get information about number of data points in generated data
get data from fixed.datagenerator object

examples

create a datagenerator object by specifying a dataspecification object in the constructor.

create the dataspecification object with an interval from -2π to 2π with a data type of single.

dataspec = fixed.dataspecification('single',...
    'intervals',{-2*pi, 2*pi})
dataspec = 
  fixed.dataspecification with properties:
          datatypestr: 'single'
            intervals: [-6.2832,6.2832]
     excludedenormals: false
  excludenegativezero: false
      mandatoryvalues: 
           complexity: 'real'
           dimensions: 1

use the dataspecification object to create a datagenerator object. limit the number of data points in the generated data to 5000 points. you can specify these properties as name-value pairs in the constructor of the datagenerator object.

datagen = fixed.datagenerator('dataspecifications',dataspec,...
    'numdatapointslimit',5000)
datagen = 
  fixed.datagenerator with properties:
    dataspecifications: {[1x1 fixed.dataspecification]}
    numdatapointslimit: 5000

use the outputalldata function to see the generated data.

mydata = outputalldata(datagen);

algorithms

version history

introduced in r2019b

see also

objects

  • |
网站地图