% this is my sweet hello world program. i rule. % % 9/40/07 - Alex Storer % disp('hello world') % % lotsofrands = rand(1,10000); % % plot(lotsofrands) % rand_inds = find(lotsofrands>0.9); % length(rand_inds) close all homer = mystery(end:-1:1); plot(homer) xlabel('Samples') ylabel('Amplitude') title('No Longer A Mystery: Matlab is Super-Easy!') % this sound is at 8192 samples/second all_samples = 1:length(mystery); time = 1/8192 * all_samples; h = figure plot(time,homer) xlabel('Time (s)') ylabel('Amplitude') title(['A sound_{\pi} of length ' num2str(max(time))]) get(gca,'YLim') newylim = [-1 1]; set(gca,'Ylim',newylim) % also consider using axes, ylim or xlim. see the help! % saveas(h,'cmdline.jpg')