Answered

How to compute the height of a peak relative to the previous amplitude before the peak?

Hi Med, Can you trust that you want the amplitude with respect to the sample point prior to the peak? Something like: [~, pea...

How to compute the height of a peak relative to the previous amplitude before the peak?

Hi Med, Can you trust that you want the amplitude with respect to the sample point prior to the peak? Something like: [~, pea...

10 months ago | 1

| accepted

Answered

integral2 array output

Hi HSch, Please refer to this answer, for an explanation, and alternatives: https://www.mathworks.com/matlabcentral/answers/69...

integral2 array output

Hi HSch, Please refer to this answer, for an explanation, and alternatives: https://www.mathworks.com/matlabcentral/answers/69...

10 months ago | 0

Answered

Inputting known values and being able to select them depending on calculated value

Hi Finlay, You could turn pproject into a function: https://www.mathworks.com/help/matlab/ref/function.html Say: function Mr...

Inputting known values and being able to select them depending on calculated value

Hi Finlay, You could turn pproject into a function: https://www.mathworks.com/help/matlab/ref/function.html Say: function Mr...

10 months ago | 1

| accepted

Answered

How do I refer to a previously defined argumentlist of symbolic variables while creating a Anonymous Function?

Hi Oliver, I might be off, but are you looking for something like this? f = @(varargin) cat( 2, varargin{:} ) f(1,2,3,4) Whi...

How do I refer to a previously defined argumentlist of symbolic variables while creating a Anonymous Function?

Hi Oliver, I might be off, but are you looking for something like this? f = @(varargin) cat( 2, varargin{:} ) f(1,2,3,4) Whi...

10 months ago | 0

Answered

Error in Joining multiple date time duration id date is in cell Array

Hi Matlab, You're overriding yourself: structtable.Date = duration(structtable.Date.Hour, structtable.Date.Minute, structtable...

Error in Joining multiple date time duration id date is in cell Array

Hi Matlab, You're overriding yourself: structtable.Date = duration(structtable.Date.Hour, structtable.Date.Minute, structtable...

10 months ago | 0

Answered

How to estimate the density threshold separately for each dimension.

Hi Silpa, In your code, your data variable is 336x7 such that data(i,:) is 1x7, causing the dimension mismatch error you're get...

How to estimate the density threshold separately for each dimension.

Hi Silpa, In your code, your data variable is 336x7 such that data(i,:) is 1x7, causing the dimension mismatch error you're get...

10 months ago | 0

Answered

MATLAB http post and json request

Hi Mohammad, I would start with something like this: import matlab.net.http.* import matlab.net.http.field.* request = Req...

MATLAB http post and json request

Hi Mohammad, I would start with something like this: import matlab.net.http.* import matlab.net.http.field.* request = Req...

10 months ago | 0

| accepted

Answered

Handling errors of type application/json when using webread

Hi Ciaran, I'm not sure I completely understand what your API returns. It's not clear to me that the HTTP Response has a status...

Handling errors of type application/json when using webread

Hi Ciaran, I'm not sure I completely understand what your API returns. It's not clear to me that the HTTP Response has a status...

10 months ago | 1

| accepted

Solved

TRON challenge

Create a solver for the classic arcade TRON game <<http://www.alfnie.com/software/figtron.png>> *Description* Your func...

2 years ago

Solved

Find common elements in matrix rows

Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

2 years ago

Solved

Kaprekar Steps

6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

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

2 years ago

Solved

Return the 3n+1 sequence for n

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

2 years ago

Solved

Alphabetize by last name

Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

2 years ago

Solved

Read a column of numbers and interpolate missing data

Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

2 years ago

Solved

Interpolator

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

2 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

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

Submitted

SortingAlgorithms

An app to demonstrate the differences between sorting algorithms.

4 years ago | 11 downloads |

Answered

References for the new Graph and Network Algorithms package?

Hello Johannes, Here are some of the relevant references that were used to build the plotting routines: *Force*: * T. F...

References for the new Graph and Network Algorithms package?

Hello Johannes, Here are some of the relevant references that were used to build the plotting routines: *Force*: * T. F...

4 years ago | 1

| accepted