Complete the code to concatenate two strings using the correct operator.
result = [str1 [1] str2];In MATLAB, square brackets [] are used to concatenate strings horizontally.
Complete the code to concatenate strings with a space between them.
result = [str1 [1] str2];To add a space between two strings in MATLAB, include a space character inside single quotes.
Fix the error in the code to concatenate strings correctly.
result = strcat(str1, [1], str2);The strcat function concatenates strings. To add a space between them, pass a space character as a string.
Fill both blanks to create a string array concatenating str1 and str2 with a space.
result = [[1] [2] str2];
Use square brackets to concatenate str1 and str2 with a space character in between.
Fill all three blanks to concatenate str1, a comma, and str2.
result = [[1] [2] [3]];
Concatenate str1, a comma character, and str2 using square brackets.