Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the value of A after the following MATLAB commands?
A = eye(3, 3);for y = 1:2:4 A(y, y) = 0;end
[0 0 0; 0 1 0; 0 0 0]
Error
[0 0 0; 0 0 0; 0 0 0]
[1 0 0; 0 1 0; 0 0 1]
[1 0 1; 0 1 0; 1 0 1]
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!