"Properly vectorize your function"-warning. fcontour & mvnpdf
显示 更早的评论
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?
采纳的回答
更多回答(1 个)
KSSV
2021-7-14
0 个投票
REad about element by element operations.
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
