Objectifs

  1. Savoir créer une nouvelle fonction
  2. Savoir implémenter une fonction 3D
  3. Savoir afficher une fonction 3D

 Exemple: sinc() 1D-2D-3D

  1. sinc1(x)=sinc(x)
  2. sinc2(x,y)=sinc(x)*sinc(y)
  3. sinc3(x,y,z)=sinc(x)*sinc(y)*sinc(z)
  4. Opérations sur les fonctions 3D

Matlab 11 Les Fonctions Mathématiques 25 - Sinus cardinal (3) Matlab 11 Les Fonctions Mathématiques 25 - Sinus cardinal (1)

function SincF = sinc123(x,Type) % Voir Matlab #10

N=length(x);

if Type==1 % 1D
SincF=sinc(x);

elseif Type==2 % 2D
sinc_2D=zeros(N,N);
y=x;
for i=1:N
for j=1:N
sinc_x=sinc(x(i));
sinc_y=sinc(y(j));
sinc_2D(i,j)=sinc_x*sinc_y;
end;
end;
SincF=sinc_2D;
else % 3D
sinc_3D=zeros(N,N,N);
y=x; z=x;
for i=1:N
for j=1:N
for k=1:N
sinc_x=sinc(x(i));
sinc_y=sinc(y(j));
sinc_z=sinc(z(k));
sinc_3D(i,j,k)=sinc_x*sinc_y*sinc_z;
end;
end;
end;
SincF=sinc_3D;
end;


end

[maxbutton id= »3″ url= »https://www.electronique-mixte.fr/formation-pdf/formation-pdf-matlab/ » text= »Retour à l’Accueil Matlab » ]

Click to rate this post!
[Total: 1 Average: 5]

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Retour en haut

You have successfully subscribed to the newsletter

There was an error while trying to send your request. Please try again.

FPGA | Arduino | Matlab | Cours will use the information you provide on this form to be in touch with you and to provide updates and marketing.