Friday, August 22, 2014

MATLAB

                                                         Matlab Logo.png
      
LAB REPORT: 06








XY-GRAPH


LAB REPORT: 08






Parabola:

m=[0:.1:5];
n=sqrt(4*5*m); % here a=5
o=-sqrt(4*5*m);
plot(m,n,'r',m,o,'r')





Draw Geometric Object Using MATLAB GUIDE.

MATLAB surf sinc3D.svg



Triangle:

a1=str2double(get(handles.a1,'string'));
b1=str2double(get(handles.b1,'string'));
r=[0:0.01:a1];
x=r*cosd(b1);
y=r*sind(b1);
y1=0*x;
x2=max(x)+0*y;
plot(x,y,'r',x,y1,'r',x2,y,'r')




Parallelogram:

a2=str2double(get(handles.a2,
'string'));
r=[0:0.01:5];
x=r*cosd(a2);
y=r*sind(a2);
y1=0*x;
x2=(max(x)+x)+0*y;
y2=max(y)+0*x2;
plot(x,y,'r',x,y1,'r',x2,y,'r',x2,y2,'r')




Equilateral Triangle:

a3=str2double(get(handles.a3,
'string'));
r=[0:0.01:a3];
x=r*cosd(60);
y=r*sind(60);
y1=0*x;
x2=-max(x):0.01:max(x);
y2=max(y)+0*x2;
plot(x,y,'r',-x,y,'r',x2,y2,'r')