MATLAB - Cell Arrays and Structures
Consider the code:
What is the error in this code?
C = {1, 2, 3};
val = C(2);
disp(val + 1);What is the error in this code?
C = {1, 2, 3};
val = C(2);
disp(val + 1);val = C(2); uses parentheses, so val is a 1x1 cell array, not a number.val = C{2};15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions