x=linspace(0.5,2); % creates a vector of 100 numbers equally spaced
% between 0.5 and 2
y= (2*x.^2 + 5)./x; % computes (2x^2+5)/x component-wise
plot(x,y) % plots the points formed by x, y
% vectors
title('Basic Plot Example') % puts a title in the plot