MATLAB: What does this format mean Hello I found the following format in one of matlab cod [~,best] = min(X); can anyone tell me what is [~,best] mean and why he used bracket while min returned single value Best Answer [min_value,index] = min(X);% min-value is the min value and index is its index[~,best] = min(X);% gives only the index Related SolutionsMATLAB: Find the first position of maximum value in a Matrix [maxValue, linearIndexesOfMaxes] = max(A(:));[rowsOfMaxes colsOfMaxes] = find(A == maxValue,1,'first')Please accept an answer if it helped you. MATLAB: How to index Vector Position Second output of min() does that. Related QuestionHow can i know what is the n when the nth is the smallest or biggestI want to find the x and y values of f(x,y) when f(x,y) is a minimum over x = -1:0.001:1 and y = -1:0.001:1.The meaning of “[~,” in a matrixIs this not outputting anythingCumulative minimum meaning or formula
Best Answer