Community Profile # Nut

Active since 2016

#### Statistics

All
• • • • • • #### Content Feed

View by

Question

How to get the indices corresponding to the width of a peak?
Hi, I'm using the findpeaks function to find the peaks of an array. After this, I should get the indices of the array corresp...

4 years ago | 1 answer | 0

### 1

Solved

Remove the Zero
Given an array n, remove all zeros

4 years ago

Solved

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

4 years ago

Solved

Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

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

4 years ago

Solved

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

4 years ago

Solved

Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

4 years ago

Solved

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

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

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

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

4 years ago

Solved

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

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

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

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

4 years ago

Question

Approach to sounds recognition with Machine or Deep Learning techniques?
Hi, I'm working about a problem of sounds recognition: I could have ten different noises, and I need the computer can classif...

4 years ago | 0 answers | 0

### 0

Solved

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

4 years ago

Question

How to export cell of double arrays to Excel?
Hi, I have to declare the following variable: Param = {[1,2],[3,4],[5,6],[7,8,9,10]}; and I need to export it into an...

4 years ago | 1 answer | 1

### 1

Question

How to trim a video?
Hi, I have a color video of about 10 minutes, and it also has an audio track. I have to trim it in order to extract the centr...

4 years ago | 1 answer | 0

### 1

How to save vector columnwise in Excel file
Hi, this code could be valid for you: for i=1:30 vec = randn(5,1); % Syntax: xlswrite(filename,A...

4 years ago | 0

Question

Registration Estimator can not register the images
Hi, I'm trying to use the Registration Estimator of the Computer Vision System Toolbox to register two images, named fixed an...

4 years ago | 0 answers | 0

### 0

Using impixel with an image sequence
Hi, I'm not expert with |implay| function and its working, but "point and click" makes me think to the |ginput| function: ...

4 years ago | 0

| accepted

Montage of two Images
Hi, if you need only to display the two images side by side you can use |subplot|. Instead, if you need to join the two im...

4 years ago | 1

| accepted

Question

How is Threshold parameter calculated and expressed in Unsharp Mask?
Hi, I'm trying to understand the |imsharpen| function: https://it.mathworks.com/help/images/ref/imsharpen.html I would ...

4 years ago | 0 answers | 1

### 0

Im using a code to calculate when a satellite re-enters the atmosphere. I need the code to stop running after the satellites altitude goes below 100km. Is there a function i can use to do this?
Maybe the _return_ function: https://it.mathworks.com/help/matlab/ref/return.html if altitude < 100 return end

4 years ago | 0

How can I create a matrix from the values of a For loop?
Hi, I'm not sure, but I think you can try this (I refer to the first version of code that you wrote): matrix = []; fo...

5 years ago | 0

Question

How to change the color of the markers when plot features over an image?
Hi, as in the subject, is it possible to change the color of the markers when you plot features over an image? Example: if...

5 years ago | 1 answer | 0

### 1

Question

How to use the Computer Vision System Toolbox OpenCV Interface?
Hi, I've download the OpenCV 3.1.0 and correctly installed the Computer Vision System Toolbox OpenCV Interface. I followed th...

5 years ago | 1 answer | 0