how to have numerical or logical matrix or cell array
Ältere Kommentare anzeigen
i got ann error allert: Error using newff>new_5p1 (line 153) Inputs are not a numerical or logical matrix or cell array.Inputs are not a numerical or logical matrix or cell array.
my input is vector of 24 x 500 double, in this vector included zero value,for example
Columns 1 through 19
74 76 81 91 98 102 107 134 144 148 157 173 177 185 196 206 212 216 243
142 181 155 119 130 162 169 144 139 134 131 114 162 153 150 135 131 117 133
11 13 14 14 14 41 109 147 150 170 175 179 251 262 309 309 309 309 311
187 177 75 116 134 173 114 163 148 136 143 128 135 137 85 140 171 191 100
Columns 20 through 27
250 251 258 261 268 269 273 296
119 85 150 181 140 116 104 138
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
how to convert them into numerical or logical matrix or cell array ? and why my vector 24 x 500 double cannot passing as an input in neural network?
7 Kommentare
Image Analyst
am 3 Sep. 2017
A vector can't be 24 x 500, that's a matrix. Vectors are 1-D. What does this say in the command window?
>> whos yourMatrixName
azkya novia
am 3 Sep. 2017
Bearbeitet: azkya novia
am 4 Sep. 2017
dpb
am 3 Sep. 2017
The nomenclature of vector vs array/matrix is a red herring here; IA is correct in the terminology but that's not the cause of the error.
We don't have enough information to answer the root cause of the error, we have the error message but in isolation, not including the calling code that preceded the error.
Cut and paste the entire sequence from the command issued till the next blank command line prompt in context without cutting/trimming anything...
azkya novia
am 4 Sep. 2017
Bearbeitet: dpb
am 4 Sep. 2017
Well, there doesn't seem to be a Matlab function newff, so we don't know what it needs for arguments.
So, what's lacking is the definition of the function from which can tell what the expected inputs are.
What does
help newff
tell you? Or, if newff is a hidden or local function inside the NN Toolbox, then need the input for the actual function called that, in turn, calls it and passes arguments thru via the varargin route shown.
Again, start with the code you executed first, and then the resulting error message and callback stack; as is we still only see the stack and not the initial code. Plus the information for the function(s) called that describes their expected arguments.
The message indicates you're calling with the wrong arguments; problem is we can't tell what the arguments are supposed to be from the selective snippets you've posted that aren't pertinent to the problem.
ADDENDUM
Specifically, start with a clean command line prompt in view; type in the command(s) that generate the error and then paste the complete session to the next prompt intact...
Greg Heath
am 8 Sep. 2017
>> help newff
newff Create a feed-forward backpropagation network.
Obsoleted in R2010b NNET 7.0. Last used in R2010a NNET 6.0.4.
The recommended function is feedforwardnet.
Hope this helps.
Greg
dpb
am 8 Sep. 2017
Ah! I haven't ever had NN TB and newff doesn't show up at all in the current online doc...
Antworten (0)
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!