Specify input for NARX

2 views (last 30 days)
jun
jun on 30 Apr 2014
Answered: Greg Heath on 1 May 2014
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!!

Accepted Answer

Greg Heath
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

More Answers (0)

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!