Solve system of equation!
Given provided system of equation, and find x and y.
System of equation can be expressed as each term's coefficient. For exam...
9年弱 前
解決済み
Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.
9年弱 前
解決済み
Add the even numbers
Add only the even numbers of x
example:
x = [1 2 3 4 5]
the positive numbers are: 2 4, so their sum is 6
Step up
For given input array, output a array with all elements step up by two
9年弱 前
解決済み
"Power matrix" of two vectors
Given two row vectors x,y of lengths m and n (respectively), create an m x n matrix whose i,j entry is x(i)^y(j).
9年弱 前
解決済み
Increase monotonically
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
9年弱 前
解決済み
Find Missing Number
A little problem (inspired by CodeChef) for the coffee break.
A friend give you an array of size n-1 integers and these int...
9年弱 前
解決済み
Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column.
Exa...
9年弱 前
解決済み
R2012b atan in Degrees
Return in degrees the atan result of inputs for all four quadrants.
*Examples:*
[x, y] Degrees
1 0 0
1 1 ...
9年弱 前
解決済み
Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].
9年弱 前
解決済み
Combinations without using nchoosek
You have to generate a matrix with all possible combinations of n elements *taken 2* at a time, *without using nchoosek(1:n,2)* ...
9年弱 前
解決済み
Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not.
Give...
9年弱 前
解決済み
Prime Letters = Removing
Given a string, remove all the letters which in ASCII Code are prime numbers.
For Example:
s1 = 'Determine which array e...