Sort (high on middle, low on ends)
Sort the vector of numbers in order low-high-low. Even numbers appear in ascending order on the left and odd numbers appear in d...
Create matrix with Gray code
Output "g" should be a matrix of class double, with <http://en.wikipedia.org/wiki/Gray_code Gray reflected binary code>.
Inpu...
8년 이하 전
해결됨
Relative ratio of "1" in binary number
Input(n) is positive integer number
Output(r) is (number of "1" in binary input) / (number of bits).
Example:
* n=0; r=...
8년 이하 전
해결됨
Vector of numbers divisible by 3
* Input(n) - any integer
* Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0
Examples:
* n=6...
8년 이하 전
해결됨
Can I make a right triangle ?
Input(a) - is vector with any amount of values. Interpreted as legths of sides.
Output(b):
* Is true if there are any 3 va...
factor to number
e.g. input number x=10 then it should produce y=25 or x=100 then y should be 2255. write a function or code to generate the same...
8년 이하 전
해결됨
Power The Product
EXAMPLE:
INPUT x=10 & y=10
OUTPUT z=1000000
or,
INPUT x=2 & y=3
OUTPUT z= 216
you just need to calculate the product first...
8년 이하 전
해결됨
COUNT VOWEL 2
The objective of this problem is to determine the number of unique vowels used in the given string.
Now count vowels in STRI...
8년 이하 전
해결됨
COUNT VOWEL
Count, how many times vowels occurred.
EXAMPLE:
x='string the MaTLaBiAn' then the answer will be 6.
x='coUnt the vowEl' th...
8년 이하 전
해결됨
Reverse CHECKBOX MATRIX with 69
Create a reverse checkbox matrix with '69'.
Where the size is the input and output will be a square checkbox matrix.
Exa...
Make a vector of prime numbers
Input(n) - length of vector with prime numbers
Output(v) - vector of prime numbers
Example:
* n=1; v=2
* n=3; v=[2 3 5...
Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.