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! ;-)
Return a list sorted by number of occurrences
1504 Solvers
1163 Solvers
Back to basics 11 - Max Integer
678 Solvers
Try 1.5.4: Celsius to Fahrenheit
609 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
298 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!