Complete the code to convert the number 5 to a string.
str_num = [1](5);
The num2str function converts numbers to strings in MATLAB.
Complete the code to convert the string '123' to a number.
num_val = [1]('123');
The str2num function converts strings to numbers in MATLAB.
Fix the error in converting the number 65 to a character.
char_val = [1](65);
The char function converts numeric ASCII codes to characters in MATLAB.
Fill both blanks to convert the string '45' to a double and then back to a string.
num_val = [1]('45'); str_val = [2](num_val);
str2num instead of str2double which is more precise.char which is for characters, not numbers.str2double converts a string to a double number, and num2str converts a number back to a string.
Fill all three blanks to convert the number 50 to a character, then to a string, and finally back to a number.
char_val = [1](50); str_val = [2](char_val); num_val = [3](str_val);
num2str instead of string for character to string conversion.str2num instead of str2double for string to number conversion.First, char converts number to character. Then string converts character to string. Finally, str2double converts string back to number.