Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column.
Input = [1 2 3 4 5;
4 3 1 2 2]'
Output = [3 4 5 2 1]'
Column norms of a matrix
Generate a random matrix A of (1,-1)
02 - Vector Variables 3
Is this triangle right-angled?
Matlab Basics - Absolute Value
function on a moving window
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
New to MATLAB?
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office