The following function computes the distance between a point and the origin, and finds out the minimum distance. function d = minDistance(x,y,z) d = sqrt(x.ˆ2 + y.ˆ2 + z.ˆ2); % Compute distance for every point d = min(d); % Get the minimum distance While running this code, “Out of Memory” error is encountered when the size of vectors is very large. What steps will you take to improve the code in order to avoid “Out of Memory” error?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here