I need to evaluate the function in each combination of (x1, x2, x3), that is:
for i=1:11
for j=1:11
for k=1:11
z(i,j,k)=feval(f,x1(i),x2(j),x3(k));
end
end
end
This evaluation gives us an NxNxN matrix (cell?). I don't know what it's called hahahaha
we selected the t smallest function values
And the indexes corresponding to the t smallest function values
Does anyone have any idea how I can return the values of x1, x2 and x3 corresponding to these t smallest function values?
4 Comments
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/513383-hello-guys-i-need-help#comment_816461
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/513383-hello-guys-i-need-help#comment_816461
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/513383-hello-guys-i-need-help#comment_816467
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/513383-hello-guys-i-need-help#comment_816467
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/513383-hello-guys-i-need-help#comment_816472
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/513383-hello-guys-i-need-help#comment_816472
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/513383-hello-guys-i-need-help#comment_816494
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/513383-hello-guys-i-need-help#comment_816494
Sign in to comment.