setsamples
Set neural network data samples
Syntax
setsamples(x,i,v)
Description
setsamples(x,i,v)
takes these arguments,
x | Neural network matrix or cell array data |
i | Indices |
v | Neural network data to store into |
and returns the original data x
with the data v
stored in the samples indicated by the indices i
.
Examples
This code sets samples 1 and 3 of matrix data:
x = [1 2 3; 4 7 4] v = [10 11; 12 13]; y = setsamples(x,[1 3],v)
This code sets samples 1 and 3 of cell array data:
x = {[1:3; 4:6] [7:9; 10:12]; [13:15] [16:18]} v = {[20 21; 22 23] [24 25; 26 27]; [28 29] [30 31]} y = setsamples(x,[1 3],v)
Version History
Introduced in R2010b
See Also
nndata
| numsamples
| getsamples
| catsamples
| setelements
| setsignals
| settimesteps