Community Profile

# Olayinka

Last seen: 23일 전 2023년부터 활동

Followers: 0   Following: 0

All

배지 보기

#### Feeds

보기 기준

문제를 풀었습니다

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

25일 전

문제를 풀었습니다

find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

26일 전

문제를 풀었습니다

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

26일 전

문제를 풀었습니다

Find the Best Hotels
Given three input variables: hotels - a list of hotel names ratings - their ratings in a city cutoff - the rating at which yo...

4개월 전

문제를 풀었습니다

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

4개월 전

문제를 풀었습니다

Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

4개월 전

질문

How do I break an array into individual element without using loops
x=[3,4,5,6,7,8,9,10] for i=1:length(x) y=x(i) end I want a function to give me this result without using a loop

4개월 전 | 답변 수: 1 | 0

### 1

답변

문제를 풀었습니다

Find the next Fibonacci number
In the sequence of Fibonacci numbers, every number is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...

4개월 전

문제를 풀었습니다

Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

4개월 전

문제를 풀었습니다

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

4개월 전

문제를 풀었습니다

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

4개월 전

문제를 풀었습니다

Create a vector
Create a vector from 0 to n by intervals of 2.

4개월 전

문제를 풀었습니다

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

4개월 전

문제를 풀었습니다

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

4개월 전

문제를 풀었습니다

Find max
Find the maximum value of a given vector or matrix.

4개월 전

문제를 풀었습니다

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

4개월 전

문제를 풀었습니다

Inner product of two vectors
Find the inner product of two vectors.

4개월 전

문제를 풀었습니다

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

4개월 전

문제를 풀었습니다

Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

4개월 전

문제를 풀었습니다

Finding peaks
Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...

4개월 전

문제를 풀었습니다

Reindex a vector
You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX has integers. Place th...

4개월 전

문제를 풀었습니다

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

5개월 전

문제를 풀었습니다

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

5개월 전

문제를 풀었습니다

Linear Motion 7
A robot has a maximum rate of acceleration of a m/s2. If the robot starts from rest and reaches a velocity of v2 m/s. How far ha...

5개월 전

문제를 풀었습니다

Create a vector whose elements depend on the previous element
The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...

5개월 전

문제를 풀었습니다

Create an n-by-n null matrix and fill with ones certain positions
The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

5개월 전

문제를 풀었습니다

Unique values without using UNIQUE function
You must return unique values in a vector in *stable* mode without using the unique function. About stable order flag: ...

5개월 전

문제를 풀었습니다

Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

5개월 전

문제를 풀었습니다

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...

5개월 전

문제를 풀었습니다

Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

5개월 전