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)
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Shivangi Chauhan
il 25 Gen 2016
Risposto: Walter Roberson
il 25 Gen 2016
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 Commenti
Risposta accettata
Walter Roberson
il 25 Gen 2016
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Spline Postprocessing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!