Community Profile

# Jason Nicholson

##### Last seen: Today
520 total contributions since 2012

I am a Mechanical Engineer.
Professional Interests: Mechanical systems, data analysis, Simulink, hydraulics, Finite Element Analysis, Computational Fluid Dynamics, System Identification, Signal Processing, programming, machine learning, data analytics.

If you send me a message, I am likely to get back to you. I do reserve the right to not respond. :)

View all

Contributions in
View by

Submitted

FFT Notes
This shows how to process a signal with an odd and even length fft.

Submitted

regularizeNd
Create a gridded lookup table of scattered data in n dimensions.

MATLAB Detection of Compiler

1 year ago | 0

| accepted

Question

MATLAB Detection of Compiler
How does MATLAB detect the compiler in 2016b or newer? I have written a custom compiler configuration xml file. mex.getCompil...

1 year ago | 1 answer | 0

### 1

Solved

Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

1 year ago

Solved

Basic electricity in a dry situation
&#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#...

1 year ago

Solved

Solitaire Cipher
Implement the <http://en.wikipedia.org/wiki/Solitaire_(cipher) solitaire cipher>. Since this is from Wikipedia, I am capturin...

1 year ago

Solved

Find a subset that divides the vector into equal halves
Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...

1 year ago

Solved

How long is the longest prime diagonal?
Stanislaw Ulam once observed that if the counting numbers are <http://en.wikipedia.org/wiki/Ulam_spiral arranged in a spiral>, t...

1 year ago

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

1 year ago

Solved

Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

1 year ago

Solved

Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

1 year ago

Solved

How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

1 year ago

Solved

How close to a hole
Suppose you have a description of good places (ones) and bad places (zeros). You want to know your distance from a bad place (in...

1 year ago

Solved

Find the same and successive values in a vector
Find the same and successive values in a vector. For example: Input x = [ 1 0 0 1 1 1 1 0 1 1 1 0 0 0 1 ] Start and end...

1 year ago

Solved

Find Elements in Range
Based on a question on <http://www.mathworks.com/matlabcentral/answers/ MATLAB Answers>. Find all the elements of a vector wh...

1 year ago

Solved

longest sequence of nans
In an array return the length of longest sequence of nans for each column. x = [ 2 3 1 2 5 6; nan nan 5 n...

1 year ago

Solved

Solve the 2-norm Regularization Problem
In data fitting, regularization is a technique to stabilize an ill-posed problem. <https://en.wikipedia.org/wiki/Tikhonov_regula...

1 year ago

Problem

Solve the 2-norm Regularization Problem
In data fitting, regularization is a technique to stabilize an ill-posed problem. <https://en.wikipedia.org/wiki/Tikhonov_regula...

1 year ago | 0

Question

Please Explain the new File Exchange Versioning Number
The new File Exchange versioning uses four numbers. Please explain what each number represents. For example, |2.1.4.2|.

1 year ago | 1 answer | 0

### 1

Submitted

Matlab Style Guidelines Cheat Sheet
One page summary of the "MATLAB Programming Style Guidelines"

Question

S-Function Backward Compatibility
Can an S-function compiled in 2018a be used in a model in 2013b? Please cite the documentation if you know the keywords to fi...

2 years ago | 1 answer | 0

### 1

Question

Reformulate a Constrained Linear Least Square Problem
I have a problem of the form <</matlabcentral/answers/uploaded_files/119361/Clipboard01.png>> Normally you solve it like t...

2 years ago | 2 answers | 0

### 2

Solved

Split array into pieces according to corresponding array
An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

2 years ago

Solved

Neither minima nor maxima
Input v is a vector. Return all the elements of v which are not a local minimum or maximum. Example: v = [1 2 3 4 5] Ou...

2 years ago

Solved

Find indices of diagonal elements
Given a matrix A and a diagonal index d (where 0 indicates the main diagonal and off-diagonals are identified by positive and n...

2 years ago

Solved

Elements with highest local average
Input v is a row vector such that length(v)>3. Consider a sliding window of length 3 that is used to calculate the local average...

2 years ago

Solved

Sum my indices
Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices. Example input...

2 years ago

Solved

Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

2 years ago

Solved

Decimation - Optimized for speed
This problem is similar to http://www.mathworks.com/matlabcentral/cody/problems/1092-decimation, only this time the score will b...

2 years ago