MATLAB: Min to Max in MatLab minminmax Which command do I need to order values from min to max? Something like: v1 = [2, 5, 9, 1] And the output should be: v1 = 1, 2, 5, 9 Best Answer v1 = sort(v1) Related SolutionsMATLAB: Question about min and max google bubblesort and choose which element satisfies your need , hint: ascending and descending MATLAB: Find the maximum value in different vectors and from which vector is it max_val = max([v1, v2,v3]); % or max_val = max([v1(:);v2(:);v3(:)]);v1 = v1 == max_val;v2 = v2 == max_val;v3 = v3 == max_val; Related QuestionMax and Min SlopesTo find position of min valueSlider direction max minMinimum value and its indexFind max & minHow to define an arbitrary constant for equations
Best Answer