adplus-dvertising
frame-decoration

Question

What is the output of the following code?
for ( i=1:10 )
if{i<3}
break
end
end

a.

Syntactical Error

b.

Logical Error

c.

i=1

d.

i=2

Posted under MATLAB

Answer: (a).Syntactical Error

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?