해결됨

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

6년 이상 전

해결됨

Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

6년 이상 전

해결됨

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

6년 이상 전

해결됨

Given a and b, return the sum a+b in c.

6년 이상 전

해결됨

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

6년 이상 전

해결됨

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

6년 이상 전

해결됨

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

6년 이상 전

질문

help solving string question
Durring my last semester, we were given a bonus quiz to write a function the received and numberical input and produced the revi...

6년 이상 전 | 답변 수: 5 | 0

### 5

답변

질문

Unique numbers in array
I was charged to *try and write my own unique function* , I was thinking of first sorting the array, and then writing a loop tha...

6년 이상 전 | 답변 수: 2 | 0

### 2

답변

질문

I am trying to take a matrix of any size , whether it has one row or 9, and write a function file that add the each element by i...

6년 이상 전 | 답변 수: 1 | 0

답변

질문