Sunteți pe pagina 1din 6

TEMA PIRF

Student: Delureanu Andrei Automatica

Tema 3 PIRF
Laborator 5 -2. Realizai reprezentarea grafic a funciilor [sin(x), cos(x)], [sin(x)^2, cos(x)^2], [sin(x)^7, cos(x)^7] n subferestre grafice.
Program MATLAB x=0:0.1:4*pi; subplot (3,2,1), subplot (3,2,2), subplot (3,2,3), subplot (3,2,4), subplot (3,2,5), subplot (3,2,6), plot plot plot plot plot plot (x,sin(x)),title('sin') (x,cos(x)),title('cos') (x,sin(x).^2),title('sin^2') (x,cos(x).^2),title('cos^2') (x,sin(x).^7),title('sin^7') (x,cos(x).^7),title('cos^7')

Laborator 6 - 2. S se genereze i s se reprezinte grafic o sfer. Program MATLAB


n=24 sphere(n) [X,Y,Z] = sphere(n), title ('Sfera')

Laborator 8 -1 S se genereze i s se afieze imaginea urmtoare.

Program MATLAB
red =[0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1] green =[0.3 0.3 1 1; 0.3 0.3 1 1; 0.3 0.3 1 1; 0.3 0.3 1 1] blue =[0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1] figure imshow(cat(3,red,green,blue))

Laborator 11 - 2. S se genereze o imagine de dimensiune 256 256 cu zgomot cu distribuie uniform ntre 0 i 255. S se foloseasc funcia rand (rand (N, M) genereaz o matrice cu N linii i M coloane ale crei eantioane au o distribuie uniform ntre 0 i 1). S se vizualizeze histograma acestei imagini. Program MATLAB
a= rand (256, 256) hist (a)
function a=hist (x) [N M]=size(x); a=zeros (1,256); for i=1:N; for j=1:M; a(round(x(i,j))+1)=a(round(x(i,j)+1))+1; end end plot (a)

S-ar putea să vă placă și