Specify input for NARX
2 views (last 30 days)
Show older comments
I am following the example about NARX (autogressive nerual network with external inputs)
What I want in my study case is that the external input need to be specified as a matrix. The manual already showed a case to address multiple external variables(which is a vector). The question is how I can let the input be a matrix?
Thanks a lot!!
0 Comments
Accepted Answer
Greg Heath
on 1 May 2014
Inputs are assumed to be matrices containing N I-dimensional vectors corresponding to N O-dimensional target/output vectors.
[ I N ] = size(input)
[O N ] = size(target)
If you have an rxc dimensional matrix, A, that is supposed to be a single input
input = A(:)
I = r x c
N = 1
Hope this helps.
Thank you for formally accepting my answer
Greg
0 Comments
More Answers (0)
See Also
Categories
Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!