Could anybody help me with this please? I am trying to work out a optimisation problem. I am using a while loop. I am able to obtain results in an array e.g. result(n).however, I am not able to make variable "n" as an array,hence, the value that I can access is always the last n value appeared. I would like to know how to make the variables into an array form that I can access the optimal result,aslo the corresponding variable "n" value.
MATLAB: How to make variables in a while loop be an array
arrayvariableswhile loop
Related Question
- How to generate random integer between two no (say 12 and 35) without repeat? randperm(n) give only 1 to n, but I need m to n.
- While loop and if statement to choose between 2 criteria
- For loop nested in while loop problem
- How to rearrange multiple results of a function without using for loop
- How to limit the function nchoosek(0:256,4) values to some fixed number, for example first 500 combinations
Best Answer