adplus-dvertising
frame-decoration

Question

What is the output of the following code?
for j= 4:2:2   
j=j+4 
end

a.

Error

b.

j=6

c.

Error an empty vector, j

d.

Syntactical error

Posted under MATLAB Programming MATLAB

Answer: (c).Error an empty vector, j

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following code?

Similar Questions

Discover Related MCQs

Q. While running a loop in MATLAB, it does not require indentation.

Q. The effective working of the continue keyword in the final iteration is same as the effective working of the break keyword.

Q. The number of iterations run for any loop by MATLAB is always _____________

Q. The for loop performs at least ___ iteration/s.

Q. Multiple graphs can be plotted, in the same window, if we use the ___ command in a loop.

Q. The condition of a while loop cannot be given in ________

Q. What is the working of the nargin keyword?

Q. What is the working of the varargout command?

Q. What is the working of the nargout command?

Q. What is the working of the varargin command?

Q. The working of the varargin command is dependent on the nargin command implicitly.

Q. The nargout command is dependent on the number of outputs sought.

Q. The default exponential order for %e and %E is same.

Q. The disp() command cannot print anything but inputs given within string arguments.

Q. The for keyword can be used to evaluate expressions using eval().

Q. The evalc function is different from the eval command ________

Q. What is common to evalc and the eval commands, apart from the output?

Q. The feval command can evaluate __________

Q. The eval command can evaluate __________

Q. The input to the eval command is given using [].