Passer au contenu
MathWorks

Formations en ligne

  • Self-Paced Content
  • MathWorks
  • Centre d’aide MATLAB
  • Communauté
  • Apprendre
  • Obtenir MATLAB MATLAB
  • Connectez-vous
    • Mon compte
    • Mon profil
    • Mes licences

    • Se déconnecter
  • Contactez le support technique MathWorks
  • Visit mathworks.com
  • Formation en ligne
MathWorks MathWorks

Sélectionner un site web

Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .

  • (English)
  • (Deutsch)
  • (Français)
  • (简体中文)
  • (English)

Vous pouvez également sélectionner un site web dans la liste suivante :

Comment optimiser les performances du site

Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.

Amériques

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asie-Pacifique

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文
    • English
  • 日本 (日本語)
  • 한국 (한국어)

Contactez votre bureau local

image for course Créer des fonctions conviviales

Créer des fonctions conviviales

Concevez et implémentez des fonctions avec des interfaces claires, une validation appropriée des entrées et une documentation utile pour améliorer l’ergonomie et l’expérience utilisateur dans son ensemble.

Modules de formation

Introduction

Get an overview of the course.

Cours :
  • Course Overview

Store Function Inputs in the Form You Want

Use the arguments block to ensure function inputs are stored in the correct size and type.

Cours :
  • Allow Flexibility Without Allowing Errors
  • Specify the Size and Type of Function Inputs
  • Summary

Validate Function Inputs

Use validation functions to ensure function inputs have the correct attributes.

Cours :
  • Why Validate Inputs?
  • Add Input Validation
  • The Interaction Between Size, Type, and Validation Functions
  • Summary

Create Functions with Flexible Interfaces

Write functions that allow optional inputs and can behave differently according to the calling syntax used.

Cours :
  • Optional Inputs and Default Values
  • Different Behaviors for Different Calling Syntaxes
  • Lists of Multiple Named Options
  • Summary

Conclusion and Next Steps

Learn next steps and give feedback on the course.

Cours :
  • Additional Resources
  • Survey

Format :Autoformation

Langue:Français

Langue

  • Des exercices pratiques avec des corrections automatisées
  • Accès à MATLAB via votre navigateur Internet
  • Certificat de formation et rapport de progression partageable

Pourquoi et comment écrire des fonctions

Augmentez la flexibilité de votre code en écrivant des fonctions personnalisées.

  • Trust Center
  • Marques déposées
  • Politique de confidentialité
  • Lutte anti-piratage
  • Statut des applications
  • Contacts locaux

© 1994-2025 The MathWorks, Inc.