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

Submitted

regularizeNd

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

4 jours ago | 26 downloads |

Answered

quadprog different output for R2020a and R2017a

There is an option called 'LinearSolver'. It can be dense or sparse. I set it to sparse and it converged quickly. This problem ...

quadprog different output for R2020a and R2017a

There is an option called 'LinearSolver'. It can be dense or sparse. I set it to sparse and it converged quickly. This problem ...

22 jours ago | 1

| accepted

Answered

Interpolation help please!

clc; clear; close all; t = [2 4 6 8 10]; x = [2 3 4 5 6]; y = [-1 2 1 3 -1]; F1 = griddedInterpolant(t,x); F2 = gridd...

Interpolation help please!

clc; clear; close all; t = [2 4 6 8 10]; x = [2 3 4 5 6]; y = [-1 2 1 3 -1]; F1 = griddedInterpolant(t,x); F2 = gridd...

23 jours ago | 1

Answered

How can I capture a screenshot WITH the cursor displayed in Matlab?

Record the screen using Screen Recording in PowerPoint? A screen capture won't work but a screen recording will.

How can I capture a screenshot WITH the cursor displayed in Matlab?

Record the screen using Screen Recording in PowerPoint? A screen capture won't work but a screen recording will.

23 jours ago | 0

Answered

Simulink Projects dependency analysis of mex file doesn't show all required C source files

File an enhancement request with Mathworks. However, I don't think they want to support the Dependency analysis of C/C++ files b...

Simulink Projects dependency analysis of mex file doesn't show all required C source files

File an enhancement request with Mathworks. However, I don't think they want to support the Dependency analysis of C/C++ files b...

23 jours ago | 0

| accepted

Answered

How to Keep Nested For Loop Indexes From Equaling Each Other

Use the continue keyword. for i=1:50 for j=1:50 if j==i continue; % breaks the inner for loop at t...

How to Keep Nested For Loop Indexes From Equaling Each Other

Use the continue keyword. for i=1:50 for j=1:50 if j==i continue; % breaks the inner for loop at t...

23 jours ago | 0

| accepted

Submitted

FFT Notes

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

environ un an ago | 0 downloads |

Answered

MATLAB Detection of Compiler

See comments above for answer.

MATLAB Detection of Compiler

See comments above for answer.

plus d'un an 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...

plus d'un an ago | 1 answer | 0

Solved

Alternating sum

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

plus d'un an ago

Solved

Basic electricity in a dry situation

⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ &#...

plus d'un an ago

Solved

Solitaire Cipher

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

plus d'un an 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...

plus d'un an 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...

plus d'un an 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...

plus d'un an 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...

plus d'un an ago

Solved

Energy of a photon

*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛* Given the frequency F of a photon in giga hertz. Find energy E of this...

plus d'un an ago

Solved

How to subtract?

*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...

plus d'un an 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...

plus d'un an 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...

presque 2 ans 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...

presque 2 ans 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...

presque 2 ans 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...

presque 2 ans 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...

presque 2 ans 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|.

presque 2 ans ago | 1 answer | 0

Submitted

Matlab Style Guidelines Cheat Sheet

One page summary of the "MATLAB Programming Style Guidelines"

presque 2 ans ago | 55 downloads |

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

presque 2 ans ago | 1 answer | 0

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

presque 2 ans ago | 2 answers | 0

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

environ 2 ans 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...

environ 2 ans ago