Community Profile

Daniel Rubin

Check-Cap Ltd

Last seen: circa 2 mesi fa Attivo dal 2015

Physicist working in developing medical imaging equipment. Has >10 years of experience in the field (worked at GE Healthcare and Philips Healthcare).

All

Content Feed

Visto da

Risolto

Convert Roman to Arabic Numerals
Based upon what I see on tv and at the movies, the use of Roman numerals indicates something is important or sophisticated (e.g....

2 mesi fa

Risolto

7 segment LED display
Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (see Wikipedia: http://e...

2 mesi fa

Risolto

Number of 1s in the Binary Representation of a Number
*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

2 mesi fa

Risolto

Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

2 mesi fa

Risolto

Draw a '0' in a one matrix!

2 mesi fa

Risolto

Find Logic 18

2 mesi fa

Risolto

Find Logic 19

2 mesi fa

Risolto

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

2 mesi fa

Risolto

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

2 mesi fa

Risolto

Create a vector
Create a vector from 0 to n by intervals of 2.

2 mesi fa

Risolto

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

2 mesi fa

Risolto

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

2 mesi fa

Risolto

Find max
Find the maximum value of a given vector or matrix.

2 mesi fa

Risolto

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

2 mesi fa

Risolto

Inner product of two vectors
Find the inner product of two vectors.

2 mesi fa

Risolto

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

2 mesi fa

Risolto

Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...

2 mesi fa

Risolto

Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

2 mesi fa

Risolto

Smallest n, for n! to have m trailing zero digits
For given positive integer n, its factorial often has many trailing zeros, in other words many factors of 10s. In order for n! t...

circa 2 anni fa

Risolto

Better Index Number
Let's say you want to save many, many files and append these files with a certain sortable index number. As you probably know, y...

circa 2 anni fa

Risolto

Whole Number Un-Concatenator
Write a function that accepts an integer and an index digit and returns a vector containing two integers which are the leading a...

circa 2 anni fa

Risolto

Whole Number Concatenator
Write a function that concatenates whole numbers. For example: numcat(111,222) should return 111222 numcat(1,2,3,4,5) s...

circa 2 anni fa

Risolto

The number of trailing zero digit of a factorial
For given positive integer n, take factorial of that number. How many trailing zeros does it have? Example: factorial(11) = 3...

circa 2 anni fa

Risolto

The last non-zero digit of a factorial
For given positive integer n, what is the last non-zero digit of n!? Example: factorial(11) = 39916800 Last non-zero d...

circa 2 anni fa

Risolto

Permutation Via Multiplication
Given two numbers a and b, determine if the product ab is a permutation of the digits of a. For example, this is always true for...

circa 2 anni fa

Risolto

Lunar Arithmetic (Multiplication)
<https://oeis.org/A087061 OEIS link for a description of lunar arithmetic> Simply take the larger digit when adding and take ...

circa 2 anni fa

Risolto

<https://oeis.org/A087061 OEIS link for a description of lunar arithmetic> Simply take the larger digit. Example 1: ...

circa 2 anni fa

Risolto

Muphry's Law of MATLAB
You're running some simple multiplication problems through MATLAB for error checking purposes, but nothing seems to come up with...

circa 2 anni fa

Risolto

Expand 10^n to Powers of 4
Given an integer n, return the coefficients c = [c_n,c_n-1,...,c_0] Such that 10^n = c_n*4^(n) + c_n-1*4^(n-1...

circa 2 anni fa

Risolto

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

circa 2 anni fa