x=[0 0.0005 0.00102 0.00146 0.0023 0.0031 0.005 0.007 0.01 0.049 0.125 0.218 0.234 0.306 0.33 0.348 0.36 0.366] y=[0 102.3 204.7 293.5 272.9 264 268.9 267.6 264 318.6 372 394.4 395 384.2 360.4 327.5 290 266.8] title('ENGINEERING STRESS-STRAIN DIAGRAM') stairs(x,y) xlabel('STRAIN,e') ylabel('STRESS,s') print -dpng figure.png
x=[0 0.0005 0.00102 0.00146 0.0023 0.0031 0.005 0.007 0.01 0.049 0.125 0.218 0.234 0.306 0.33 0.348 0.36 0.366] y=[0 102.3 204.7 293.5 272.9 264 268.9 267.6 264 318.6 372 394.4 395 384.2 360.4 327.5 290 266.8] title('ENGINEERING STRESS-STRAIN DIAGRAM') plot(x,y) xlabel('STRAIN,e') ylabel('STRESS,s') print -dpng figure.png
x = [1 2 3 4 5 6 7 8 9 10]; for i=1:10 y(i)=x(i)*x(i); end scatter(x,y); line(x,y); title('plot title'); xlabel('x axis'); ylabel('y axis'); print -dpng figure.png
x=[0 0.0005 0.00102 0.00146 0.0023 0.0031 0.005 0.007 0.01 0.049 0.125 0.218 0.234 0.306 0.33 0.348 0.36 0.366] y=[0 102.3 204.7 293.5 272.9 264 268.9 267.6 264 318.6 372 394.4 395 384.2 360.4 327.5 290 266.8] semilogy(x,y); stairs(x,y); scatter(x,y); line(x,y); area(x,y); ar=area(x,y); title('plot stress strain curve'); xlabel('x axis'); ylabel('y axis'); print -dpng figure.png
Classdef human; %bmi of human; properties; h.name; h.weight; h.height; h.age; function bmi=human(p); bmi=p.weight/(p.height*p.height); p.age =p.height*p.height*25; p.weight-p.age; print -dpng figure.png;
t = -40:40; x = t == 0; plot(t,x); grid; title('Plot title'); xlabel('X Axis'); ylabel('Y Axis'); print -dpng figure.png
x = [0.55:0.17:16]; y=((cos(x)).^2+(sin(x)).^2)/x.^3; plot(y,x)
x=[1 2 3 4 5 6 7 8 9 10] for i=1:10 if (rem(i,2)==0) y(i)=1 else y(i)=0 end end scatter(x,y); line(x,y); title('plot title'); xlabel('x axis'); ylabel('y axis'); print dpng figure.png
x=[ 0 0.0005 0.00102 0.00146 0.0023 0.0031 0.005 0.00698 0.00995 0.0478 0.1178 0.1972 0.2103 0.3572 0.5298 0.7218 0.9308 1.0909 ]; y=[0 0.102381013 0.204762026 0.2936355 0.2730672 0.264164503 0.269076336 0.267694883 0.264164503 0.334782939 0.390875603 0.480034361 0.480781205 0.549357079 0.612433599 0.674498164 0.735868292 0.794624736 ]; line(x,y); title('stress vs strain'); xlabel('X Axis'); ylabel('Y Axis'); print -dpng figure.png
x=[0 0.0005 0.00102 0.00146 0.0023 0.0031 0.005 0.007 0.01 0.049 0.125 0.218 0.234 0.306 0.33 0.348 0.36 0.366]; y=[0 102.3 204.7 293.5 272.9 264 268.9 267.6 264 318.6 372 394.4 395 384.2 360.4 327.5 290 266.8]; loglog(x,y); title(' sress srtain curve'); xlabel('strain'); ylabel('stress'); print -dpng figure.png
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more