Solved


Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...

6 years ago

Solved


Duplicate a character
Duplicate a character 'n' times. Example 1: str='a' n=5 output='aaaaa' Example 2: str='*' n=3 output='***'

6 years ago

Solved


Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

6 years ago

Solved


Flip the bit
Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').

6 years ago

Solved


cos for boss?
a programmer had too much coffee and his boss needs cos(alpha+beta) correctly, especially when alpha or beta are close to pi/2 a...

6 years ago

Solved


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

6 years ago

Solved


Make a simplified barcode
Given an integer to encode, make a barcode using the following encoding scheme: * The bar code is made from the binary versio...

6 years ago

Solved


Test if a Number is a Palindrome without using any String Operations
*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

6 years ago

Solved


Learn MATLAB

6 years ago

Solved


find the height

6 years ago

Solved


NaN

6 years ago

Solved


Learn MATLAB

6 years ago

Solved


area

6 years ago

Solved


Learn MATLAB

6 years ago

Solved


Learn MATLAB

6 years ago

Solved


Learn MATLAB

6 years ago

Solved


Learn MATLAB

6 years ago

Solved


Factorial

6 years ago

Solved


Matrix operation

6 years ago

Solved


F.R.I.E.N.D.S

6 years ago

Solved


Size

6 years ago

Solved


sign function

6 years ago

Solved


Learn MATLAB

6 years ago

Solved


Learn MATLAB

6 years ago

Solved


Learn MATLAB

6 years ago

Solved


Learn MATLAB

6 years ago

Solved


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

6 years ago

Solved


Square root of a number
Write a code that will output the square root of x.

6 years ago

Solved


Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

6 years ago

Solved


Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

6 years ago

Load more