Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute MATLAB/Octave Online

x = [1 2 3 4 5 6 7 8 9 10];
y1 = [.16 .08 .04 .02 .013 .007 .004 .002 .001 .0008 ];
y2 = [.16 .07 .03 .01 .008 .003 .0008 .0003 .00007 .00002 ];

semilogy(x,y1,'-bo;y1;',x,y2,'-kx;y2;');
title('Plot title');
xlabel('X Axis');
ylabel('Y Axis');

print -dpng figure.png

Execute MATLAB/Octave Online

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);
title('Plot title');
xlabel('X Axis');
ylabel('Y Axis');

print -dpng figure.png

RIGIDITY MODULUS CALCULATION

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];

area(x,y);
ar=area(x,y)
title('stress strain curve');
xlabel('strain');
ylabel('stress');

print -dpng figure.png

Execute MATLAB/Octave Online

x = [0 45 90 135 180 225 270 315 360 405 450 495 540 585 630 675 720];
y=sin(x*pi/180);
scatter(x,y);
line(x,y)
title('Plot title');
xlabel('X Axis');
ylabel('Y Axis');

print -dpng figure.png

project3

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);
title('Plot title');
xlabel('X Axis');
ylabel('Y Axis');

print -dpng figure.png

Execute MATLAB/Octave Online

x=[0 45 90 135 180 225 270 315 360 405 450 495 540 585 630 675 720];
y=sin(x*pi/180);
scatter(x,y);
title('plot title');
xlabel('x axis');
ylabel('y axis');

print -dpng figure.png

SQUARE PLOT FOR USING LOOP

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)
title('plot tittle');
xlabel('X Axis');
ylabel('Y Axis');

print -dpng figure.png

Execute MATLAB/Octave Online/square plot

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);
title('Plot title');
xlabel('X Axis');
ylabel('Y Axis');

print -dpng figure.png

Execute MATLAB/Octave Online/straight line

X= [0 0.005 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
];
scatter(X,Y);
line(X,Y);
title('Stress vs Strain');
xlabel('Strain e');
ylabel('Stress s MPa');

print -dpng figure.png

Execute MATLAB/Octave Online

x = [0 45 90 135 180 225 270 315 360 405 450 495 540 585 630 675 720];
y = sin(x*pi/180);
y1 = diff(x,0)
scatter(x,y);
line(x,y);
title('Plot title');
xlabel('X Axis');
ylabel('Y  Axis');

print -dpng figure.png

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.