Question: Variable c is a cell array. Which of the following code can display the value of each cell element? A, for i=1:length(c) disp(c(i)); end
Variable c is a cell array. Which of the following code can display the value of each cell element? A, for i=1:length(c) disp(c(i)); end B. for x=c disp(x) end OC. for i=1:length(c) disp(c(i)); end OD, for x=c end disp((x))
Step by Step Solution
3.48 Rating (148 Votes )
There are 3 Steps involved in it
The image presents a multiplechoice question about iterating over elements in a cell array in MATLAB ... View full answer
Get step-by-step solutions from verified subject matter experts
