num2digit.zip
Version 1.0.0.0 (20 KB) by
Duc Chung Tran
Split a positive number into digits, following the digit order from the original number
With this file you can split a number into digits.
Example:
a=num2digit(1986321,10)
a =
0 0 0 1 9 8 6 3 2 1
This function is useful when reading and splitting numbers from a text file into MATLAB work space. Additionally the function shall be used for splitting a binary number into a series of 1/0 digits with the same length to be used in training/testing neural networks or similar applications.
Cite As
Duc Chung Tran (2026). num2digit.zip (https://in.mathworks.com/matlabcentral/fileexchange/46459-num2digit-zip), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Deep Learning Toolbox > Train Deep Neural Networks > Function Approximation, Clustering, and Control > Function Approximation and Clustering >
Find more on Function Approximation and Clustering in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
