Answered You can hire a professional tutor to get the answer.
CS 151L - Fall 2016 Programming Assignment 2 Due: Saturday, September 10, 2016 at 11:m" and "cs151f16assn2b. Be sure to include your name and section...
Hello, I have a couple of questions on the second part of the assignment I attached, its for my Matlab programming assignment. On the second part of the assignment, part b, it says, create 1 by N rows vectors for the x and y coordinates; each conataining N random numbers between -. and .5. I did
x=rand(1,N)-.5y=rand(1,N)-.5 % this gives me my numbers between -.5 and .5, , is it entered correctly?
second question)I dont know how to do step c) I tried, distance=([sqrt(x.^2+y.^2),sqrt(x.^2+y.^2)]% this doesnt look right to me .