solution14

# solution14 - plot(x,f-k'linewidth,2 xlabel'x,ylabel f(x...

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

% 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(' ')

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

View Full Document
% Prob. 2a x=-10:0.1:10; f=(x.^2-x+1)./(x.^2+x+1);

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

View Full Document
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

## This note was uploaded on 02/27/2010 for the course ENME 271 taught by Professor Marks during the Summer '08 term at Maryland.

### Page1 / 4

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

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

View Full Document
Ask a homework question - tutors are online