wed_lec_noon - subplot(2,3,6)...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
%% Plotting t = linspace(0,1,51); v1 = 20*t.*exp(-10*t); subplot(3,2,1) plot(t,v1,'k--','linewidth',2) %axis([min(t)-0.1 max(t)+0.1 min(v1)-0.1 max(v1)+0.1]) ylim([min(v1)-0.1 max(v1)+0.1]) title('20te^{-10t}') xlabel('t') ylabel('v') grid on subplot(3,2,6) plot(t,v2,'linewidth',2) legend('v1','v2') %% clear,clc t = linspace(0,1,51); v1 = 20*t.*exp(-10*t); plot(t,v1,'r--','linewidth',1) [x,y] = ginput(2); hold on %plot(x,y,'linewidth',2) %text(x(1),y(1),'HERE!') textPlot = [num2str(x(1)) ',' num2str(y(1))]; text(x(1),y(1),textPlot) gtext('Here I am') %% time = linspace(0,15,300); data = exp(time); subplot(2,3,1) plot(time, data) subplot(2,3,3) semilogx(time,data,'r') subplot(2,3,5) semilogy(time,data,'g','linewidth',2)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: subplot(2,3,6) loglog(time,data,'k:','linewidth',2) %% clear,clc grades = [85 85 76 90]; hist(grades) %% plot3 x = linspace(0,10*pi,1000); y = cos(x); z = sin(x); plot3(x,y,z) %% clear,clc range = -2:0.1:2; [x y] = meshgrid(range,range); z = x.^2 - y.^2; subplot(2,1,1) mesh(x,y,z) subplot(2,1,2) surf(x,y,z) %% figure(2) fplot('exp(x)',[0 10]) figure(3) ezplot('exp(x)',[0,10]) %% Structure clear,clc junkFood.name = 'burger'; junkFood.calories = 5000; junkFood(2).name = 'pizza'; junkFood(2).calories = 4000; %% clear,clc junkFood2(1) = struct('name','burger','calories',5000); junkFood2(2) = struct('name','burger','calories',5000);...
View Full Document

Page1 / 3

wed_lec_noon - subplot(2,3,6)...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online