"contourc" Functions Does Not Accept Inputs of Type Single.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 7 Août 2019
Réponse apportée : MathWorks Support Team
le 9 Août 2019
The function "contourc" does not accept inputs of type single. Is there any existing workaround?
The follow code block produces an error when passing variables of type single as input into the "contourc" function.
lon = 5:5:50;
lat = 5:5:50;
grid = randi([0 50], 10, 10);
contourValues = 5:5:50;
contours = contourc(single(lon), single(lat), single(grid), single(contourValues));
Error using contourc
Input arguments for contourc must be of type 'double'.
Réponse acceptée
MathWorks Support Team
le 7 Août 2019
One workaround is to cast the variables of type single into type double.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Time Series Collections dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!