Lien de la vidéo sur YouTube: Matlab #10: Implémentation et Affichage d’une fonction 3D – Sinus 3D

Objectifs

  1. Savoir créer une nouvelle fonction mathématique
  2. Savoir implémenter une fonction à 3 variables
  3. Savoir afficher une fonction 3D

Exemples

  1. sin3(x,y,z)=sin(x)*sin(y)*sin(z)
  2. Somme des fonctions 3D

Implémentation et Affichage d’une fonction 3D – Sinus 3D - Exemple (2) Implémentation et Affichage d’une fonction 3D – Sinus 3D - Exemples Implémentation et Affichage d’une fonction 3D – Sinus 3D - Exemple (1)

function Sin3D = sin3(x,y,z,f0)

N=length(x);
w0=2*pi*f0;
Sin3D=zeros(N,N,N);

for i=1:N
for j=1:N
for k=1:N
sin_x=sin(w0*x(i));
sin_y=sin(w0*y(j));
sin_z=sin(w0*z(k));
Sin3D(i,j,k)=sin_x*sin_y*sin_z;
end;
end;
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: 0 Average: 0]

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.