solution14

solution14 - plot(x,f,'-k','linewidth',2)...

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

View Full Document Right Arrow Icon
% Assignment 14 % Prob. 1 L=[25 25.037 25.073 25.113 25.122 25.125 25.132 25.144 25.164 25.208 25.409 25.646 26.084 27.398 29.150]; F=[0 13345 26689 40479 42703 43593 44482 44927 45372 46276 47908 49035 50265 53213 56161]; plot(L,F,'- g^','linewidth',2,'markersize',8,'markeredgecolor','b','markerfacecolor','r') xlabel('length (inches)'),ylabel('force (pounds)') title('Tension Test of Metal Specimen') disp(' ')
Background image of page 1

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

View Full DocumentRight Arrow Icon
% Prob. 2a x=-10:0.1:10; f=(x.^2-x+1)./(x.^2+x+1);
Background image of page 2
Background image of page 3

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

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

Unformatted text preview: plot(x,f,'-k','linewidth',2) xlabel('x'),ylabel(' f(x)') title('Plot of f(x)=(x^2-x+1)/(x^2+x+1) vs x') axis([-12 12 0 3.5]) % Prob 2b fplot('(x.^2-x+1)./(x.^2+x+1)',[-10 10],'linewidth',2,'-k') xlabel('x'), ylabel('f(x)') title('Plot of f(x)=(x^2-x+1)/(x^2+x+1) vs x') axis([-12 12 0 3.5]) % Prob. 3 x=0:0.01:2; y1=0.3*x; y2=sin(2*pi*x); plot(x,y1,'-r',x,y2,'--g') title('Plot of 0.3*x and of sin(2*pi*x) vs x') legend('y=0.3*x','y=sin(2*pi*x)',0)...
View Full Document

Page1 / 4

solution14 - plot(x,f,'-k','linewidth',2)...

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

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