if you have a new enough MATLAB.
Question
I have a variable which is the vertical and horizontal projection of histogram data from digit 0 to 9. the matrix is 30×176. it has 30 row because each digit had 3 set. I need to use neural network to train these but I had no idea what to place in target data. What should the target data be? i tried to place binary number of digit 0 to 9 into the target data but it seems to be wrong because result shows 0.0%.
Expert Answer
Neeta Dsouza
PhD Expert
Answered Aug 22, 2026
The target should be set to the digit number 0 to 9 that each row corresponds to.
T = kron( (0:9).', ones(3,1) )
or
T = repelem((0:9).',3)
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related neural network Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →