Your test suite is too easily defeated. You should replace it with: isequaln(vec_cons(), y_correct)
Test suite needs to be updated.
This user (ALBERT ALEXANDER STONIER) appears to have gamed the system, with fraudulent "likes" of this unremarkable solution submitted by 'sock-puppet' accounts. —DIV
Given an unsigned integer x, find the largest y by rearranging the bits in x
Make a random, non-repeating vector.
Who has power to do everything in this world?
Check that number is whole number
Matlab Basics - Pick out parts of a vector
Find out the Gray Code for a Given Binary Number
Convert to Binary Coded Decimal
Average speed for the entire trip
Converter temp 0 to 200 degree C to 4 to 20mA
Cumulative product of a vector
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