Resuelto


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

alrededor de 1 mes hace

Resuelto


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

alrededor de 1 mes hace

Resuelto


Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

alrededor de 1 mes hace

Resuelto


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

alrededor de 1 mes hace

Resuelto


Basic Physics IV
Calculate the Mechanical Energy (ME).

alrededor de 1 mes hace

Resuelto


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

alrededor de 1 mes hace

Resuelto


The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

alrededor de 1 mes 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 mes hace

Resuelto


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...

alrededor de 1 mes hace

Resuelto


Multiply the Diagonals of Two Vectors
Find the diagonals of vectors a and b and multiply them.

alrededor de 1 mes hace

Resuelto


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

alrededor de 1 mes hace

Resuelto


Find The Area Of The Circle
Find the area of the Circle using PI.

alrededor de 1 mes hace

Resuelto


What's Your BMI?
Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

alrededor de 1 mes hace

Resuelto


Wrapping the Tower of Pisa
The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a ci...

alrededor de 1 mes hace

Resuelto


Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

alrededor de 1 mes hace

Resuelto


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

alrededor de 1 mes hace

Resuelto


Replace May with April
For instance, if the input is input_str = 'The flowers may bloom in April'; then the output is output_str = 'The flo...

alrededor de 1 mes hace

Resuelto


Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

alrededor de 1 mes 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...

alrededor de 1 mes hace

Resuelto


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

alrededor de 1 mes hace

Resuelto


How many jokers?
* Given DNA codes of a group of suspects, * and a code for certain types of jokers, * Count how many jokers of that type. * ...

alrededor de 1 mes hace

Resuelto


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

alrededor de 1 mes hace

Resuelto


Your favourite city!
Type your favourite city.

alrededor de 1 mes hace

Resuelto


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

alrededor de 1 mes hace

Resuelto


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

alrededor de 1 mes hace

Resuelto


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input

alrededor de 1 mes hace

Resuelto


Basic arrays operations.
Apply element-by-element binary operation 'fun' to two arrays (A and B).

alrededor de 1 mes hace

Resuelto


Highest building

alrededor de 1 mes hace

Resuelto


Basic Mathematics 4
Team #1 is in first place but only one point higher than Team #2. The sum of their two scores is N. What are each team’s scores...

alrededor de 1 mes hace

Resuelto


Area Conversion 2

alrededor de 1 mes hace

Cargar más