Community Profile # Anastasija D.

Last seen: 3 months ago Active since 2019

#### Statistics

• • • • • #### Content Feed

View by

Solved

Tridiagonal
Return an n-by-n matrix that has a, b, c as the subdiagonal, main diagonal, and superdiagonal entries in the matrix. Example ...

3 months ago

Solved

Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

3 months ago

Solved

Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

3 months ago

Solved

Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

3 months ago

Solved

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

3 months ago

Solved

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

3 months ago

Solved

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

3 months ago

Solved

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

3 months ago

Solved

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

3 months ago

Solved

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

3 months ago

Solved

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

3 months ago

Solved

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

3 months ago

Solved

Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

3 months ago

Solved

Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

3 months ago

Solved

Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

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

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

3 months ago

Solved

Draw a '2' in a zero matrix!

4 months ago

Solved

Draw a '4' in a zero matrix!

4 months ago

Solved

Draw a '7' in a zero matrix!

4 months ago

Solved

Draw a '1' in a zero matrix!

4 months ago

Solved

Draw a '3' in a zero matrix!

4 months ago

Solved

Draw a '6' in a zero matrix!

4 months ago

Solved

Draw a '5' in a zero matrix!

4 months ago

Solved

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

4 months ago

Solved

Converts numbers into characters
Converts numbers into characters

4 months ago

Solved

to the 2 all elements
to the 2 all elements

4 months ago

Solved

Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

4 months ago

Solved

Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

4 months ago

Solved

the average value of the elements
Calculate the average value of the elements in the array

4 months ago