Which command generates a vector of 100 points between 450 a

Which command generates a vector of 100 points between 450 and 500? linspace(450, 100, 500); linspace(450:500/100); linspace(450, 500, 100); linspace([4S0:500], 100);

Solution

y = linspace(x1,x2,n) generates n points. The spacing between the points is (x2-x1)/(n-1).

So the correct answer here is

linspace(450,500,100)

 Which command generates a vector of 100 points between 450 and 500? linspace(450, 100, 500); linspace(450:500/100); linspace(450, 500, 100); linspace([4S0:500]

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site