Community Profile

# Binbin Qi

### China University of Petroleum

4,043 total contributions since 2009

Professional Interests: Machine Learning/ Math/ Geophysics

View all

Contributions in
View by

Solved

What is the current time in Darwin, Australia?
Traders need to track exchange calendars and trading hours in detail, and account for time zone differences and daylight savings...

8 days ago

Solved

Function minimization - global minimum
Sequel of problem 45951 <https://www.mathworks.com/matlabcentral/cody/problems/45951> Can you do even better, within the r...

8 days ago

Solved

Function minimization - beat fminbnd!
Matlab's fminbnd function finds a minimizer of a function within an interval. If often gets stuck in local minima. Can you do...

8 days ago

Solved

Function minimization - beat fminsearch!
Sequel of problem 45948 <https://www.mathworks.com/matlabcentral/cody/problems/45948-function-minimization-beat-fminbnd> M...

8 days ago

Solved

Longest run of consecutive numbers (★★★★★)
(copy of Problem 672) Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you...

26 days ago

Solved

Let's create histogram data by yourself.
We'd like to create histogram data, which first column shows the data, and second column shows the frequency. input = [1, 2, ...

26 days ago

Solved

Flag a convertible string
If a string is able to be entirely converted to an integer, return a "true" flag. Otherwise, return a false flag. For example: ...

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

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

1 month ago

Solved

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

1 month ago

Solved

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

1 month ago

Solved

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

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

1 month ago

Solved

Reindex a vector (★★)
(copy of Prob. 676) You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX h...

1 month ago

Solved

Get the elements of diagonal and antidiagonal for any m-by-n matrix (★★★★)
(copy of prob. 859) In this problem you must submit a solution which returns the diagonal and anti-diagonal elements without ...

1 month ago

Solved

Compute the Bernoulli numbers
The <https://en.wikipedia.org/wiki/Bernoulli_number Bernoulli numbers> appear in several applications in number theory, includin...

1 month ago

Solved

(Copy of Problem 47) Benford's Law states that the distribution of leading digits is not random. This is probably because man...

1 month ago

Solved

How many points lie within the rectangle and how many aren't?
Suppose, you are given the coordinates of bottom-left and top-right corners of a rectangle as *input-1, R* i.e *R=[Bottom-left c...

1 month ago

Solved

Bto
Hangisi daha büyük

1 month ago

Solved

DETERMİNE bigger input
which one is biigger x or z

1 month ago

Solved

Calculate the volume of a cone
Calculate the volume of a cone given an array containing one column of radii and one column of the height of the cone. * Reme...

1 month ago

Solved

Triangle Numbers (★★)
(copy of problem 5) Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3...

2 months ago

Solved

Make a checkerboard matrix (★★★★★)
(copy of Prob. 4) Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1...

2 months ago

Solved

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

2 months ago

Solved

Sort even numbers from 1 to 100
Sort even numbers from 1 to 100 for ex: x=1:100

2 months ago

Solved

Times 7
Try out this test problem first. Given the variable x as your input, multiply it by seven and put the result in y. Example...

2 months ago

Solved

Times 6
Try out this test problem first. Given the variable x as your input, multiply it by six and put the result in y. Examples:...

2 months ago

Solved

Which one is More bigger?
we have two input like (x,y) our output (z) must wich one is bigger input.

2 months ago

Solved

Replicate elements in vectors (★★★)
(copy of Prob 867) Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2...

2 months ago

Solved

Remove the row average (★★★)
(copy of Prob. 963) Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solut...

2 months ago