Integer to String Conversion in MATLAB: int2str Function
Advertisement
This page provides information about the int2str MATLAB function, which converts integer inputs to string outputs.
The int2str function first rounds the elements of the input matrix to the nearest integer value before converting them into a string.
Example:
input = [12.6000 30.8000];
output = int2str(input)
Output:
output = 13 31
Explore MATLAB Data Types, Strings & Conversions
- Binary to Decimal Conversion in MATLAB
- Binary to Hex Conversion in MATLAB
- Decimal to Base-N Conversion in MATLAB
- Decimal to Binary Conversion in MATLAB
- Decimal to Hexadecimal Conversion in MATLAB (dec2hex)
- Hex to Binary Conversion in MATLAB
- Hexadecimal String to Double Conversion in MATLAB
- Number to Hexadecimal String Conversion in MATLAB
- Number to String Conversion in MATLAB (num2str)
- String to Double Conversion in MATLAB
- String to Number Conversion in MATLAB (str2num)
- MATLAB Matrix to String (mat2str)
- Base-N Number String to Decimal in MATLAB
