X plus binary inverted x
Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-)...
6 years ago
Solved
Concatenated roots
Which is the value of this infinte concatenated roots?
<<https://s27.postimg.org/i4hkin7xf/Code_Cogs_Eqn.gif>>
Note: If ...
6 years ago
Solved
Converting Decimal to Binary
Given a decimal number that may include a fractional component, convert it into binary representation. The numbers you are given...
6 years ago
Solved
Multiplication
Multiply two numbers in a different manner.
The numbers are given to you as vectors x and y.
Example
x = [ 1 2 0 1 ]
...
6 years ago
Solved
Raise a polynomial to a power
In Matlab, polynomials are represented by a vector of coefficients. For example, the polynomial p=a*x^2 + b*x + c is represente...
6 years ago
Solved
Array ex-OR
There are in MATLAB logical functions such as
_<http://www.mathworks.co.uk/help/matlab/ref/and.html and>,_
_<http://www.math...
6 years ago
Solved
Alternate list of elements
Write a function that combines two lists by alternating the elements, e.g. ['a','b','c'], ['1','2','3'] → 'a1b2c3'.