Bouncing disk
A disk is placed in a rectangular room with dimensions a and b in a point with coordinates x0 and y0. The disk is given a startu...
5 years 前
已解决
Find the jerk
No, it's not the author of this problem...
Jerk is the rate of change in acceleration over time of an object. So, if given t...
5 years 前
已解决
Colon operator of two vectors
You are given two vectors of equal length: VecStart, VecEnd
Each vector contain a set of integers, where VecEnd(j)>=VecStar...
5 years 前
已解决
Juggling
There is a notation system for <http://en.wikipedia.org/wiki/Juggling jugglers> called <http://en.wikipedia.org/wiki/Siteswap si...
5 years 前
已解决
Is this matrix orthogonal?
Given a square matrix, a, determine whether it is orthogonal.
INPUT: a, a n x n matrix
OUTPUT: true or false
5 years 前
已解决
Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...
5 years 前
已解决
Back to basics 4 - Search Path
Covering some basic topics I haven't seen elsewhere on Cody.
Return a string that is the user's portion of the current search...
5 years 前
已解决
Sum the squares of numbers from 1 to n
For a given value of n return the sum of square of numbers from 1 to n.
Example
For n = 2
then sum of squares = 5 (1^2 + ...
5 years 前
已解决
Octoberfest festival
A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...
Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector
for example
x ...