Vertical matrix sort
Given a matrix x with n rows and m columns, return a matrix y with 2n rows and m columns, such that every column in x is sorted ...
3ヶ月 前
解決済み
Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer:
e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2
3ヶ月 前
解決済み
Box!
Given a box, find the volume of the cube. With each side = a.
3ヶ月 前
解決済み
UICBioE240 problem 1.1
Remove the middle row from a matrix, assuming # of rows is odd.
So if
A = [ 1 2 3;
4 5 6;
7 8 9]
the...
3ヶ月 前
解決済み
Geometric series
Find the sum, given the first term t1, the common ratio r, and number of terms n.
Examples
If input t1=1, r=1, n=7 the...
metre to feet converter
The idea is to make a converter, which exchange meters to feets.
We use a factor of 1m = 3.281*1f.
so 3m are equals to 9.843 m...
What's the missing interior angle?
I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a...
3ヶ月 前
解決済み
Are you in XY plane?
Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0.
Example...
3ヶ月 前
解決済み
persistant sum
There will be 9 tests for this problem.
In each test you will be provided with 2 integers n=[n1,n2],
where n2 is equal to t...