Community Profile

photo

Daniele


Universitá degli Studi di Trento

22 total contributions since 2015

Contact

Daniele's Badges

  • First Review
  • Thankful Level 1
  • Solver

View details...

Contributions in
View by

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

alrededor de 1 año ago

Question


Custom Dendrogram Ordering Implementation
Hi,I'm trying to implement a custom ordering of a dendrogram (obtained using the linkage function) based on the rule that the "h...

casi 3 años ago | 1 answer | 0

1

answer

Question


Leaf Ordering Of Linkage Tree
Hi, I have a set N M-dimensional samples. I applied the linkage function in order to obtain the binary tree and I am trying to ...

casi 3 años ago | 0 answers | 0

0

answers

Solved


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

más de 3 años ago

Solved


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

más de 3 años ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

más de 3 años ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

más de 3 años ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

más de 3 años ago

Solved


Add two numbers
Add two numbers (For beginners)

más de 3 años ago

Solved


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

más de 3 años ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

casi 4 años ago

Solved


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

alrededor de 4 años ago

Solved


Blockland
Add a new block to these towers without letting them fall. To add a new block just choose the x-coordinate (between -10 and ...

alrededor de 4 años ago

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

alrededor de 4 años ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Question


Plotting Bar Graphs with just ones group
Hello everyone, I would like to produce a bar plot composed by grouped bars. The problem rises when i want to plot just one gro...

alrededor de 4 años ago | 1 answer | 0

1

answer

Solved


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

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

alrededor de 4 años ago