Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
An error occurred while propagating data type 'double' through...
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1067215/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1067220/image.png)
19 commentaires
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1067970/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1069340/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1069345/image.png)
- In the while loop, k never increases so it is an infinite loop. You need to add k=k+1
- the usage of gradient() function is puzzling. xd is a constant. Why there are so many input arguments?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1070210/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1072665/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1073575/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1073580/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1073660/image.png)
- The direct derivative (du/dt) operation usually would cause problem in digital simulation. Use an approximation of derivative if it is absolutely needed. In your model, two derivatives are multiplied but I didn't see where it is used. If it is for observation only, then delete or comment out all of them.
- In the solver settings, reduce the step size or reduce the relative tolerance, you might be able to get the simulation running without error.
- If there is a true algebraic loop, you need to find it and resolve it.
- ADRC is known to have digital simulation stability issues due to its non-linearity. Check the literature to see if there is recommendation on the settings for Simulink simulation.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1074565/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1074570/image.png)
Réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
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 : .
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
- United Kingdom(English)
Asie-Pacifique
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)