Community Profile

photo

Jason Casey


114 2019 이후 총 참여 횟수

Jason Casey's 배지

  • CUP Challenge Master
  • Introduction to MATLAB Master
  • Commenter
  • Promoter
  • Solver

세부 정보 보기...

참여 게시물
보기 기준

해결됨


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

약 1달 전

해결됨


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

약 1달 전

해결됨


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

약 1달 전

해결됨


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

약 1달 전

해결됨


Area of rhombus
Calculate the rhombus area

약 1달 전

해결됨


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

약 1달 전

해결됨


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!

약 1달 전

해결됨


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

약 1달 전

해결됨


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

약 2달 전

해결됨


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

약 2달 전

해결됨


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

약 2달 전

해결됨


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

약 2달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


Will there be a new leader?
Simply answer the title.

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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]

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

해결됨


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

8달 전

Load more