I get a series answer of optimal problem in several times,and i want to sum of them and average them,however, some of them are "Inf",can i or how to write a code to ignore those "Inf" and sum the others which is not "Inf" ?
Also,if i can sum them when some of them are "Inf",and don't know the amount of value which is "Inf",do we have some method to average them,i mean,ignore the "Inf" and average the others?
The version of matlab is 2015a
Best Answer