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

bijna 2 jaar ago | 1 answer | 0

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

ongeveer 2 jaar 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...

ongeveer 2 jaar 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...

ongeveer 2 jaar 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...

ongeveer 2 jaar 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 ...

ongeveer 2 jaar 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...

ongeveer 2 jaar 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...

ongeveer 2 jaar 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...

ongeveer 2 jaar 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 ...

ongeveer 2 jaar 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...

ongeveer 2 jaar 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:...

ongeveer 2 jaar 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...

ongeveer 2 jaar ago | 0 answers | 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.

ongeveer 2 jaar 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...

ongeveer 2 jaar ago | 1 answer | 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...

meer dan 2 jaar ago | 1 answer | 0

Answered

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

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

meer dan 2 jaar 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...

meer dan 2 jaar ago | 0 answers | 0

Answered

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

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

meer dan 2 jaar ago | 0

| accepted

Answered

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

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

meer dan 2 jaar 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 ...

meer dan 2 jaar ago | 0 answers | 1

Answered

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

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

meer dan 2 jaar ago | 0

Answered

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

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

meer dan 2 jaar 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...

meer dan 2 jaar ago | 1 answer | 0

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

bijna 3 jaar ago | 1 answer | 0

Answered

How to use str2double without rounding

Hi, maybe you need a proper set of the output display format: https://it.mathworks.com/help/matlab/ref/format.html The ...

How to use str2double without rounding

Hi, maybe you need a proper set of the output display format: https://it.mathworks.com/help/matlab/ref/format.html The ...

bijna 3 jaar ago | 0

| accepted

Answered

Call elements for a cell array

Hi, I think the following example could be a basic help, is it useful for you? % 3x1 cell building (example) cellar...

Call elements for a cell array

Hi, I think the following example could be a basic help, is it useful for you? % 3x1 cell building (example) cellar...

bijna 3 jaar ago | 0