Community Profile

# Jason Casey

##### Last seen: 6 días ago
114 total contributions since 2019

View details...

Contributions in
View by

Solved

Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

alrededor de 1 año ago

Solved

Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

alrededor de 1 año ago

Solved

frame of the matrix
Given the matrix M, return M without the external frame.

alrededor de 1 año ago

Solved

Matlab Basics - Set unwanted parts of a vector to zero
Consider a vector x, of length >= 7, write a script to set elements 2, 5, and 6 to zero. Example x = [1 2 3 4 5 6 7] --> ...

alrededor de 1 año ago

Solved

Area of rhombus
Calculate the rhombus area

alrededor de 1 año ago

Solved

Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

alrededor de 1 año ago

Solved

Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

alrededor de 1 año ago

Solved

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

alrededor de 1 año ago

Solved

Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

alrededor de 1 año ago

Solved

Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

alrededor de 1 año ago

Solved

Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

alrededor de 1 año ago

Solved

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 ago

Solved

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

más de 1 año ago

Solved

Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): Once a mont...

más de 1 año ago

Solved

Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

más de 1 año ago

Solved

Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

más de 1 año ago

Solved

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

más de 1 año ago

Solved

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

más de 1 año ago

Solved

Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

más de 1 año ago

Solved

Concatenate two strings
Its very easy. Just concatenate two strings.

más de 1 año ago

Solved

Reverse a matrix
Its simple. You have to reverse a given matrix.

más de 1 año ago

Solved

Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

más de 1 año ago

Solved

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

más de 1 año ago

Solved

Will there be a new leader?

más de 1 año ago

Solved

Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

más de 1 año ago

Solved

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

más de 1 año ago

Solved

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]

más de 1 año ago

Solved

Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

más de 1 año ago

Solved

Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

más de 1 año ago

Solved

Calculate square and cube of number
Calculate square and cube of number x

más de 1 año ago