If
x = [2 6 4 9 10 3 1 5 1]
the the output should be 7, because the first minimum value (1) lies at the 7th position.
Given an unsigned integer x, find the largest y by rearranging the bits in x
524 Solvers
Find the sum of the elements in the "second" diagonal
879 Solvers
Generate N equally spaced intervals between -L and L
441 Solvers
Output any real number that is neither positive nor negative
250 Solvers
Matlab Basics - Convert a row vector to a column vector
300 Solvers
Solution 331297
please explain the solution.
The ~ is a dummy variable, and isn't needed for the calculation. Some earlier versions of MATLAB don't have that option, and will give you an error with that statement. If you have that happen, you can use dummy or junk as the variable name in place of the ~.
thanks James
I'm late, but James answer ist perfect! ;-)