Why it will not work? First try with less number of points. You ave taken a huge number of points.
clc; clear all ;
m = 100 ; % change this number
t=linspace(0.0000000000000001,0.0000000000001,m);
[minval ind]=min(t) % This is not required. This is nothing but t(1)
[maxval ind1]=max(t) % this is not required. This is nothing but t(end)
size(t) % this would be 1*m
xs=randn(1,m);
% subplot(3,1,1) % why subplot?
plot(t,xs)