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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Shivangi Chauhan
el 25 de En. de 2016
Respondida: Walter Roberson
el 25 de En. de 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 comentarios
Respuesta aceptada
Walter Roberson
el 25 de En. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!