>> X=rand(1,24); A=rand(1,24), B=rand(1,24), [Y,Xf,Af]=myNeuralNetworkFunction(X,A,B)
A =
Columns 1 through 12
0.7881 0.7803 0.6685 0.1335 0.0216 0.5598 0.3008 0.9394 0.9809 0.2866 0.8008 0.8961
Columns 13 through 24
0.5975 0.8840 0.9437 0.5492 0.7284 0.5768 0.0259 0.4465 0.6463 0.5212 0.3723 0.9371
B =
Columns 1 through 12
0.8295 0.8491 0.3725 0.5932 0.8726 0.9335 0.6685 0.2068 0.6539 0.0721 0.4067 0.6669
Columns 13 through 24
0.9337 0.8110 0.4845 0.7567 0.4170 0.9718 0.9880 0.8641 0.3889 0.4547 0.2467 0.7844
Y =
Columns 1 through 12
0.6632 0.5483 0.5479 0.5092 0.5815 0.6850 0.4981 0.5285 0.6459 0.5905 0.4829 0.5494
0.2425 0.3143 0.3145 0.3363 0.2946 0.2277 0.3424 0.3256 0.2539 0.2891 0.3505 0.3136
0.0944 0.1374 0.1376 0.1544 0.1240 0.0873 0.1595 0.1459 0.1002 0.1204 0.1666 0.1370
Columns 13 through 24
0.5189 0.6153 0.6071 0.5866 0.6492 0.5412 0.5996 0.5661 0.6416 0.6734 0.6060 0.6304
0.3310 0.2736 0.2788 0.2915 0.2517 0.3184 0.2834 0.3038 0.2567 0.2356 0.2795 0.2640
0.1501 0.1111 0.1141 0.1220 0.0990 0.1404 0.1169 0.1301 0.1017 0.0910 0.1145 0.1056
Xf =
Empty cell array: 1-by-0
Af =
Empty cell array: 2-by-0
>> X=rand(1,24); [Y,Xf,Af]=myNeuralNetworkFunction(X)
Y =
Columns 1 through 14
0.5080 0.5004 0.5871 0.5776 0.6716 0.5038 0.6116 0.6613 0.5038 0.5378 0.5081 0.6461 0.5597 0.5619
0.3370 0.3412 0.2911 0.2969 0.2368 0.3393 0.2760 0.2437 0.3393 0.3203 0.3370 0.2538 0.3076 0.3063
0.1550 0.1584 0.1217 0.1255 0.0916 0.1569 0.1125 0.0950 0.1569 0.1419 0.1549 0.1001 0.1327 0.1318
Columns 15 through 24
0.6762 0.6209 0.6480 0.5491 0.6464 0.5047 0.5220 0.6246 0.6010 0.5545
0.2337 0.2700 0.2525 0.3138 0.2536 0.3388 0.3293 0.2677 0.2826 0.3107
0.0901 0.1090 0.0995 0.1371 0.1000 0.1565 0.1487 0.1077 0.1164 0.1349
Xf =
Empty cell array: 1-by-0
Af =
Empty cell array: 2-by-0