MD. MASRUL HUDA
Bangladesh University of Engineering & Technology
2012년부터 활동
I am studying Chemical engineering .I love matlab coding as it seems to me like solving math puzzle.........actually i am a fanatic of matlab
Professional Interests: process control,mathematics,heat transfer ,programming
Content Feed
문제를 풀었습니다
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
11년 초과 전
문제를 풀었습니다
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
11년 초과 전
문제를 풀었습니다
Flag largest magnitude swings as they occur
You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...
11년 초과 전
문제를 풀었습니다
Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...
11년 초과 전
문제를 풀었습니다
So many choices
For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...
거의 12년 전
문제를 풀었습니다
Kaprekar numbers
Test if the input is a Kaprekar number: <http://mathworld.wolfram.com/KaprekarNumber.html>. Return a logical true or false. ...
거의 12년 전
문제를 풀었습니다
High school cafeteria
Given an input vector of positive integers, return a row vector with the primes first (in increasing order) and the composites n...
거의 12년 전
문제를 풀었습니다
Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...
거의 12년 전
문제를 풀었습니다
Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...
거의 12년 전
문제를 풀었습니다
Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...
거의 12년 전
문제를 풀었습니다
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
거의 12년 전
문제를 풀었습니다
Ackermann's Function
Ackermann's Function is a recursive function that is not 'primitive recursive.' <http://en.wikipedia.org/wiki/Ackermann_fun...
거의 12년 전
문제를 풀었습니다
Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...
거의 12년 전
문제를 풀었습니다
Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...
거의 12년 전
문제를 풀었습니다
Are all the three given point in the same line?
In this problem the input is the coordinate of the three points in a XY plane? P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) how can...
거의 12년 전
문제를 풀었습니다
Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...
거의 12년 전
문제를 풀었습니다
Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...
거의 12년 전
문제를 풀었습니다
Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.
거의 12년 전
문제를 풀었습니다
Project Euler: Problem 5, Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...
거의 12년 전
문제를 풀었습니다
deconvolution
* Suppose there is a vector v like [1 0 0 -1], representing polynomial coefficients. * In this example, the polynimial is 1*x^3...
거의 12년 전
문제를 풀었습니다
Make a Palindrome Number
Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...
거의 12년 전
문제를 풀었습니다
Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...
거의 12년 전
문제를 풀었습니다
Magic!
Check whether the input matrix is a normal magic square: <http://en.wikipedia.org/wiki/Magic_square> Output the logical va...
거의 12년 전
문제를 풀었습니다
Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.
거의 12년 전
문제를 풀었습니다
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
거의 12년 전
문제를 풀었습니다
Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise
거의 12년 전
문제를 풀었습니다
Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...
거의 12년 전
문제를 풀었습니다
Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....
거의 12년 전
문제를 풀었습니다
Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];
거의 12년 전