"Properly vectorize your function"-warning. fcontour & mvnpdf
Mostrar comentarios más antiguos
F = @(x,y) mvnpdf([x,y]);
fc = fcontour(F);
This code generates the following warning:
Warning: Function behaves unexpectedly on array inputs. To improve performance,
properly vectorize your function to return an output with the same size and shape as
the input arguments.
What should I do to get rid of this warning and increase performance?
Respuesta aceptada
Más respuestas (1)
KSSV
el 14 de Jul. de 2021
0 votos
REad about element by element operations.
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
