Question: What is value in the variable x after the following code run? n=length(x); while n>1 x = x(1:2:end); n = length(x); end OA, the
What is value in the variable x after the following code run? n=length(x); while n>1 x = x(1:2:end); n = length(x); end OA, the last value in the original vector x B. the first value of the original vector OC, an empty vector. OD, the size of the original vector x
Step by Step Solution
3.54 Rating (158 Votes )
There are 3 Steps involved in it
Lets analyze the code step by step matlab n lengthx while n 1 x x12end n lengthx end Heres what the ... View full answer
Get step-by-step solutions from verified subject matter experts
