Community Profile

# GOKU

Last seen: 3달 전 2019 이후 활성

배지보기

#### Content Feed

보기 기준

해결됨

Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

3달 전

해결됨

You just measured its surface area, that is the input.

3달 전

해결됨

Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

3달 전

해결됨

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

3달 전

해결됨

Find a subset that divides the vector into equal halves
Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...

3달 전

해결됨

Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

3달 전

해결됨

Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

3달 전

해결됨

Draw a '4' in a zero matrix!

3달 전

해결됨

Draw a '6' in a zero matrix!

3달 전

해결됨

Draw a '9' in a zero matrix!

3달 전

해결됨

Draw a '7' in a zero matrix!

3달 전

해결됨

Draw a '8' in a zero matrix!

3달 전

해결됨

Draw a '3' in a zero matrix!

3달 전

해결됨

Draw a '2' in a zero matrix!

3달 전

해결됨

Draw a '5' in a zero matrix!

3달 전

해결됨

Draw a '1' in a zero matrix!

3달 전

해결됨

Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

3달 전

해결됨

Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

3달 전

해결됨

~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

3달 전

해결됨

Draw a '0' in a one matrix!

3달 전

해결됨

Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

3달 전

해결됨

Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

3달 전

해결됨

Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

3달 전

해결됨

Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

3달 전

해결됨

Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

3달 전

해결됨

Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

3달 전

해결됨

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

3달 전

해결됨

Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

3달 전

해결됨

Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.&#8519;^(-&lambda;t)*cos(2πft)| where |A|, |&lambda;|, and |f| ...

3달 전