Write a two-input, two-output function that swaps its two input arguments. For example:
[q,r] = swap(5,10)
returns q = 10 and r = 5.
Your initial code suggestion is weird :)
This is a correct solution - alas using a function handle, not an m-file
You are brilliant when you are lazy
Omg love this solution so simple and easy really clever! Didn't think about this :)
I feel so pride that I just get the same code like this leading one!!!
Return the largest number that is adjacent to a zero
First non-zero element in each column
Spot the outlier
07 - Common functions and indexing 3
What is Sum Of all elements of Matrix
Eight Queens Solution Checker
Create a function handle that reverses the input arguments of another function handle
Eliminate unnecessary polygon vertices
Extract green color component from truecolor image
Nonuniform quantizer as a piecewise constant function
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