
Binbin Qi
China University of Petroleum
Professional Interests: Machine Learning/ Math/ Geophysics
Statistics
RANK
1 731
of 262 988
REPUTATION
28
CONTRIBUTIONS
2 Questions
14 Answers
ANSWER ACCEPTANCE
50.0%
VOTES RECEIVED
4
RANK
4 165 of 17 999
REPUTATION
314
AVERAGE RATING
3.70
CONTRIBUTIONS
7 Files
DOWNLOADS
12
ALL TIME DOWNLOADS
3043
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
Solved
Create a column vector of n elements between a and b (both included)
Given lower limit a and an upper limit b, create a column vector of n elements inclusive of a and b. For example: a = 1, b = 4,...
ungefär 6 timmar ago
Solved
Gaussian elimination
Get the Gussian elimination of the Matrix Given You cannot use built-in Matlab functions triu :)
ungefär 6 timmar ago
Solved
Find the outcast
All pairs have the same difference except for one. Output the index of the latter Example: input =[0 1; 1 0; ...
ungefär 6 timmar ago
Solved
Count the peaceful queens
In a 5x5 chessboard with a queen of one color (white, say) on the perimeter, one can place 12 black queens on the board such tha...
ungefär 7 timmar ago
Solved
Length of shortest path in a directed graph.
Given a directed graph and a start and end node in the graph, return the minimum number of hops required to reach the end node f...
ungefär 7 timmar ago
Solved
Determine roll pitch yaw angles from a 3D rotation matrix
Consider an aerospace application where the world reference coordinate frame {W} and a body-fixed coordinate frame {B}. The ori...
ungefär 7 timmar ago
Solved
determine skid distance of car
Determine the distance a car skids to a stop given initial velocity (v) and time (t).
ungefär 8 timmar ago
Solved
Convert vector datasets to plot with imagesc instead of scatter
For large datasets this allows much faster plotting. An irregular 2D spatial sampling is provided in x and y vectors with a d...
ungefär 8 timmar ago
Solved
Chain multiplication - 03
Following up the problem in 55305, you found the minimum number of multiplications needed to multiply a chain of matrices. In ...
ungefär 12 timmar ago
Solved
Sum of 2 numbers in array
Given an array and a target sum, return true if any 2 numbers in the array sum up to the given target sum. Both numbers cannot h...
ungefär 13 timmar ago
Solved
Draw 'S'
draw S using nxn matrix, where n is odd and greater than 4 S = [1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 ...
ungefär 13 timmar ago
Solved
Define an arithmetic sequence
Given three numbers n, a, and d, define an arithmetic sequence of n terms with a being the initial term of the sequence and d be...
ungefär 13 timmar ago
Solved
Return longest string in 1-D array of strings
Find the longest string in an array of strings. Return an empty string if the initial array is empty. If there are multiple stri...
ungefär 13 timmar ago
Solved
Merge structs on fields
Merge a bunch of structs into one, containing the field names and corresponding values of all input structs. For duplicate field...
en dag ago
Solved
Undocumented MATLAB tricks No. 1 - Save a function-returned struct
Often we face the case when we want to save a function-returned struct to a mat file with each of its field as individual variab...
en dag ago
Solved
Exhaust all possible logical vectors
Input a length argument and list all possible logical vectors of that length. My solution is of size 29. Can you find an even s...
en dag ago
Solved
Count of Unique Elements of a Vector
Count the number of times each unique element appears in a vector. Example: Input x = [2 9 1 2 4 9 2] Output y = [1 1; 2 3; 4...
en dag ago
Solved
Find two numbers that add up to the target value
Given a vector A and target n, return the indices of two numbers that add up to n. If there are multiple solutions, return the f...
en dag ago
Solved
Mix it up!
Given an input string S, return a new string B, that is created by taking one character from the front and then the end iterativ...
en dag ago
Solved
Sort vector by number of prime factors of each element
Sort a given array based on how many prime factors each term has. Sort from least to greatest and output original values. Ex: ...
en dag ago
Solved
String Manipulator
Write a script that takes a string as an input and returns a cell array containing – I. the count of vowels. II. Find the ind...
en dag ago
Solved
Weird Diagonal Matrix!!
**If you have loved the problem, please like it below(Request)** Given an integer n, create a matrix whose diagonal elements wi...
en dag ago
Solved
Create a v-notch vector without "sort" function
Given a vector vec, create a v-shaped vector as shown below: vec = [ 10 2 3 89 5 7 90 0 12] Output vector = [90 89 12 10 7 5 3 ...
en dag ago
Solved
Draw 'Y'
Draw 'Y' in an x-by-x matrix (where x is odd and x >= 3) Examples: x = 3 y = [1 0 1 0 1 0 0 1 0] x = 5 y = [1...
en dag ago
Solved
Given an input string, generate a variable name out of it
Given an input string, generate a variable name out of it in easy to read format by a programmer. If the input string contains ...
2 dagar ago
Solved
Draw a triangle of ones
For any given n, return a matrix that includes a triangle of ones of height n: Example n = 3 output = [0,0,1,0,0 ...
2 dagar ago
Solved
Area of a regular hexagon
Given the length of a side of a regular hexagon, return its area rounded to two decimal places.
2 dagar ago
Solved
Draw a X
Given an input , create a square matrix of zeros with an X of ones. Ex. n = 3 drawX(3) [ 1 0 1 0 1 0 1 0 1 ] ...
2 dagar ago