function plotSin2
% usage: plotSin2
% This function plots sin(x) over a domain specified by user
% We will query the user for input values then display a plot of sin(x)
% over that

% get starting and endng
disp('You will define the plotting domain for sin(x).');
l = input('Enter the starting x value:');
h = input('Enter the ending x value:');

x = linspace(l,h);

%define the sin function
f = sin(x);

% and plot
plot(x,f)