Community Profile

# Atsushi Ueno

##### Last seen: 3 días ago
1.621 total contributions since 2016

View details...

Contributions in
View by

Solved

Find out the Gray Code for a Given Binary Number
Find out <http://en.wikipedia.org/wiki/Gray_code Gray Code> for a given binary number Example Binary input 1000 Gray ...

27 días ago

Solved

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...

27 días ago

Solved

Check if a rotated array was originally sorted
Suppose a sorted array is rotated at some pivot unknown to you. For example, |[0 1 2 4 5 6 7]| might become |[5 6 7 0 1 2 4]|. ...

alrededor de 1 mes ago

Solved

Weave two matrices together to form one matrix
Take the first column from matrix a, then insert the first column from matrix b, and so on. For example: a = [1 2 3 4]; b ...

alrededor de 1 mes ago

Solved

generate number in particular way
A = [1 5 2 7]; MAX = 10; generate a array Y = [1 2 2 2 2 2 3 3 4 4]; i.e. total eleme...

alrededor de 1 mes ago

Solved

Sorting integers by their digits (Level 1)
Given a vector, v, of positive integers, return a vector, w, by sorting v in ascending order, such that primary sorting is done ...

alrededor de 1 mes ago

Solved

Split array into pieces according to corresponding array
An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

alrededor de 1 mes ago

Solved

Find indices of diagonal elements
Given a matrix A and a diagonal index d (where 0 indicates the main diagonal and off-diagonals are identified by positive and n...

alrededor de 2 meses ago

Solved

Elements with highest local average
Input v is a row vector such that length(v)>3. Consider a sliding window of length 3 that is used to calculate the local average...

alrededor de 2 meses ago

Solved

Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

alrededor de 2 meses ago

Solved

Find Elements in Range
Based on a question on <http://www.mathworks.com/matlabcentral/answers/ MATLAB Answers>. Find all the elements of a vector wh...

alrededor de 2 meses ago

Solved

Neither minima nor maxima
Input v is a vector. Return all the elements of v which are not a local minimum or maximum. Example: v = [1 2 3 4 5] Ou...

alrededor de 2 meses ago

Solved

Find the position of planet in solarsystem
Write a funtion named *nthplanet* which takes name of the planet as input string and provides the position of the planet, starti...

alrededor de 2 meses ago

Solved

Approximation of Pi (vector inputs)
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

alrededor de 2 meses ago

Solved

Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

alrededor de 2 meses ago

Solved

Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

alrededor de 2 meses ago

Solved

How to locate the position of an element in a vector without using the find function
(copy of prob 105 with test for find function) Write a function posX = *locatePos* (x,y) which returns the location o...

alrededor de 2 meses ago

Solved

Matrix indexing with two vectors of indices (★★)
(copy of Prob 589) Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)). Thus, if...

alrededor de 2 meses ago

Solved

Vector of digits (★★)
Given a positive integer x, construct a vector y with all the digits of x in the order of appearance in x. Thus, if x = 172...

alrededor de 2 meses ago

Solved

counting sequence
A counting sequence is formed by "counting" the entries in a given sequence.

alrededor de 2 meses ago

Solved

sumdigits
function [p1,p2] = goldbach(n) for p1 = 1:n if isprime(p1) p2 = n - p1; if isprime(p2) re...

alrededor de 2 meses ago

Solved

find the stepnumber?
you can find the stepnumber.

alrededor de 2 meses ago

Solved

how tall are you?
you can find the length wit this code.

alrededor de 2 meses ago

Solved

Kelvin to Fahrenheit
You can find a doc about it in here => https://www.rapidtables.com/convert/temperature/how-kelvin-to-fahrenheit.html x is kelvi...

alrededor de 2 meses ago

Solved

Percentage
There is x liter water and y gram => z is percentage of salt in water

alrededor de 2 meses ago

Solved

Polygon Interior Angle Sum
Theorem is (n−2)x180°

alrededor de 2 meses ago

Solved

GPA
Math's credit is 5 and you got x | Physics's credit 7 and you got y what is your GPA

alrededor de 2 meses ago

Solved

Mile to Kilometer
x is mile and y is km

alrededor de 2 meses ago

Solved

Watt
Ampere x Volt = Watt

alrededor de 2 meses ago

Solved

Bit to Gigabyte
1 bit = 1.25 × 10^-10 gigabytes | x is bit | y is gigabyte

alrededor de 2 meses ago