How do i find the function value for different values of xi &Yi; where f=function(x,y);i=1,2,..............n (n may be 15, 50 or 100)
3 ビュー (過去 30 日間)
古いコメントを表示
How do i find the function value for different values of xi & Yi; where f= function(x,y); i=1,2,..............n (n may be 15, 50 or 100)?
0 件のコメント
採用された回答
Walter Roberson
2016 年 1 月 25 日
If xi and Yi are both vectors of values, and you want to find the result at each pair of values xi(J), Yi(K), then
[XI, YI] = ndgrid(xi, Yi);
results = arrayfun(@f, XI, YI);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および 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!