Applied Physics BSc.
Professional Interests: diffractive optics, lasers systems
Top 5% contributor
I want to round down (floor) variable defined as int8 without converting to double !
I want the...
Asked 5 years ago
Is Mathworks planning in near future to release simulink expansion for optical systems modeling such as lens, mirrors, polarizer...
5 years ago
5 years ago
In model I constructing with use of SIMMECHANICS there is no meaning for inertia or shape of rigid bodies. Only motion propertie...
4 years ago
Omit columns averages from a matrix.
16 2 3 13
5 11 10 8
9 7 ...
2 years ago
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if
3 years ago
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice.
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
Given n, find the sum of the digits that make up 2^n.
Input n = 7
Output b = 11
since 2^7 = 128, and 1 + ...
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false.
Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice.
Check if sorted.
Input x = [1 2 0]
Output y is 0
Given a row vector of numbers, find the indices of the two nearest numbers.
[index1 index2] = nearestNumbers([2 5 3...
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...
If you have two small strings, like 'a' and 'b', return them put together like 'ab'.
'a' and 'b' => 'ab'
For extra ...
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.
Regardless of input, output the string 'yes'.
Find the sum of all the numbers of the input vector x.
Input x = [1 2 3 5]
Output y is 11
Input x ...
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN.
Reverse the vector elements.
Input x = [1,2,3,4,5,6,7,8,9]
Output y = [9,8,7,6,5,4,3,2,1]
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
Remove all the vowels in the given phrase.
Input s1 = 'Jack and Jill went up the hill'
Output s2 is 'Jck nd Jll wn...
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries