Resuelto


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

9 meses hace

Resuelto


Cannon Ball
Given g (acceleration due to gravity) and desired altitude x, find the minimum ground velocity of a cannon ball to reach x.

9 meses hace

Resuelto


Concatenate a successive power matrix in a column matrix
Generate F = [M1 M^2 ... M^p] with M a matrix, without using for.

9 meses hace

Respondida
No longer able to rate difficulty of qustions on Cody
This issue is now resolved. Problem difficulty rating and solution pages are now working as expected. @Joel Hottinger, @Dyuman...

10 meses hace | 0

| aceptada

Resuelto


Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

11 meses hace

Resuelto


Rule of mixtures (composites) - lower and upper bounds
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

11 meses hace

Resuelto


Rumis Scorer 2
<http://en.wikipedia.org/wiki/Rumis Rumis> is a multiplayer 3D block board game where the goal is to have the most squares visib...

11 meses hace

Resuelto


CMPSC 200 help(2)
Use this problem to earn some easy points towards your 1,000! Just hit submit. function y = your_fcn_name(x) y = x^2 + 32; e...

11 meses hace

Resuelto


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

11 meses hace

Resuelto


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

11 meses hace

Resuelto


GJam March 2016 IOW: Polynesiaglot Small
This Challenge is derived from <http://code.google.com/codejam/contest/8274486/dashboard#s=p2 GJam March 2016 Annual I/O for Pol...

12 meses hace

Resuelto


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

12 meses hace

Resuelto


Max of a Vector
Write a function to return the max of a vector

12 meses hace

Resuelto


Cycling — Critical Power
From Training and Racing with a Power Meter by Allen and Coggan: "A number of equations have been presented in the scientific...

alrededor de 1 año hace

Resuelto


Find S-parameters of the circuit
Refer to <http://en.wikipedia.org/wiki/Scattering_parameters> for the information about the system of scattering parameters. ...

alrededor de 1 año hace

Resuelto


Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...

alrededor de 1 año hace

Resuelto


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...

alrededor de 1 año hace

Resuelto


Rotate counterclockwise a matrix 90 deg with left-bottom element
Example: Input [ 1 2 3 4 5 6 ] Output [ 3 6 2 5 1 4 ]

alrededor de 1 año hace

Resuelto


Calculate BMI
Given a matrix hw (height and weight) with two columns, calculate BMI using these formulas: 1 kilogram = 2.2 pounds 1 inch = 2...

alrededor de 1 año hace

Resuelto


Create a vector
Create a vector from 0 to n by intervals of 2.

alrededor de 1 año hace

Resuelto


Temperature Conversion 1

alrededor de 1 año hace

Resuelto


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

alrededor de 1 año hace

Resuelto


Find max
Find the maximum value of a given vector or matrix.

alrededor de 1 año hace

Resuelto


Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

alrededor de 1 año hace

Resuelto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

alrededor de 1 año hace

Resuelto


Inner product of two vectors
Find the inner product of two vectors.

alrededor de 1 año hace

Resuelto


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

alrededor de 1 año hace

Respondida
Cody: what are the criteria for being able to view all solutions?
Updating this thread with some relevant info. The criteria to view all solutions to a problem in Cody has been updated - now, ...

alrededor de 1 año hace | 1

Respondida
Cody: what are the criteria for being able to view all solutions?
Hi Christian, thanks for taking the time to post this question. In the Cody 'About' page, right-hand panel, the rules for unloc...

más de 1 año hace | 1

| aceptada

Resuelto


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

más de 1 año hace

Cargar más