Question: if you typed the following expression into the Command Window in MATLAB: for i = 1 : 2 0 0 x ( i ) =

if you typed the following expression into the Command Window in MATLAB:
for i =1:200 x(i)= i/10; y(i)= x(i)^2+ x(i) ; end
a) What value would be returned if you next typed into the Command Window (4 pts):
x(20)
b) What value would be returned if you next typed into the Command Window (6 pts):
y(20)
c) BONUS 2 Points: What value would be returned if you next typed into the Command Window?
sum(i)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!