grd = unigrid(startval,stp,endval)
returns a uniformly sampled grid from the closed interval
[startval,endval], starting from startval.
stp specifies the step size. This syntax is the same as calling
startval:stp:endval.
Start value of the uniform grid, specified as a real scalar.
Data Types: double
endval — End value real scalar
End value of the uniform grid, specified as a real scalar.
Data Types: double
stp — Step size real scalar
Step size, specified as a real scalar
Data Types: double
intype — Interval type "[]" (default) | "[)"
Interval type, specified as "[]", which represents a closed
interval, or "[)", which represents a semi-open
interval. Specifying a closed interval does not always cause grd to
contain the value endval. The inclusion of
endval in a closed interval also depends on the step size
stp.
Data Types: char | string
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.