I also recommend that you wait that someone else solves your problem before posting your solution. Of course, you can solve a problem that you've created, and it is nice to share your view on it (since, in this case, there is probably more than one function that maps to these same values). However, posting this many problems and solving all of them reinforces the theory of spam.
So sorry, I didn't realize that you were creating a problem group. I still recommend that you wait that someone else solves your problem before posting your solution.
Moreover, problem 16 needs to be have more test cases or else it becomes trivial.
Find all elements less than 0 or greater than 10 and replace them with NaN
Whether the input is vector?
Concatenate two strings
Draw a 'X'!
Find Logic 4
Find Logic 8
Find square of given number
Find Logic 16
Find the treasures in MATLAB Central and discover how the community can help you!
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