research interests: vibrations, optimal control, system modeling and simulation, mechatronics... coding

Solved

Return the largest number that is adjacent to a zero

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

alrededor de 5 horas ago

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

alrededor de 6 horas ago

Solved

(Linear) Recurrence Equations - Generalised Fibonacci-like sequences

This problem is inspired by problems <http://uk.mathworks.com/matlabcentral/cody/problems/2187-generalized-fibonacci 2187>, <htt...

alrededor de 6 horas ago

Solved

Fibonacci Decomposition

Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...

alrededor de 6 horas ago

Solved

How many Fibonacci numbers?

Find the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers. Example: x = [1 2 3 4...

alrededor de 6 horas ago

Solved

Is the Point in a Triangle?

Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

alrededor de 8 horas ago

Solved

Back to basics 19 - character types

Covering some basic topics I haven't seen elsewhere on Cody. Return the number of punctuation characters in the input variabl...

alrededor de 17 horas ago

Solved

Back to basics 7 - Equal NaNs

Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

alrededor de 17 horas ago

Solved

Is it a number?

Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

alrededor de 18 horas ago

Solved

Flipping

Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

alrededor de 18 horas ago

Solved

Unit Matrix

Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

alrededor de 18 horas ago

Solved

04 - Scalar Equations 3

Define the variables a, b, and c: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b....

alrededor de 18 horas ago

Solved

Relative ratio of "1" in binary number

Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

alrededor de 18 horas ago

Solved

Binary numbers

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

alrededor de 19 horas ago

Answered

How to extract obstacles from an occupancy grid map

Apply imdilate() fcn to your image map: https://www.mathworks.com/help/images/ref/imdilate.html Distance calcs: https://www.m...

How to extract obstacles from an occupancy grid map

Apply imdilate() fcn to your image map: https://www.mathworks.com/help/images/ref/imdilate.html Distance calcs: https://www.m...

alrededor de 20 horas ago | 0

Answered

three-axle vehicle body model

The equations are self-explanatory. As one can see that the forces are computed from the acceleration and velocity components al...

three-axle vehicle body model

The equations are self-explanatory. As one can see that the forces are computed from the acceleration and velocity components al...

alrededor de 20 horas ago | 0

Answered

segment point cloud data into clusters | The input point cloud must be organized (M-by-N-by-3)

Probably, you'd need to generate meshes using meshgrid()

segment point cloud data into clusters | The input point cloud must be organized (M-by-N-by-3)

Probably, you'd need to generate meshes using meshgrid()

alrededor de 20 horas ago | 0

Answered

How to plot the polytope given by a system of inequalities

To get a surface plot, you had better use meshgrid() and interp3(). https://www.mathworks.com/help/matlab/ref/meshgrid.html?sea...

How to plot the polytope given by a system of inequalities

To get a surface plot, you had better use meshgrid() and interp3(). https://www.mathworks.com/help/matlab/ref/meshgrid.html?sea...

alrededor de 20 horas ago | 0

Answered

Plotting/Scatter of m-by-n matrix versus time

It should work if you write your code, e.g.: t=1:12; G = randi([0, 13], 154, 12); plot(t, G, 'o--'), shg

Plotting/Scatter of m-by-n matrix versus time

It should work if you write your code, e.g.: t=1:12; G = randi([0, 13], 154, 12); plot(t, G, 'o--'), shg

alrededor de 20 horas ago | 0

Answered

How can I get the laplace transform of piecewise function?

Use heaviside(). See this help doc: https://www.mathworks.com/help/symbolic/heaviside.html

How can I get the laplace transform of piecewise function?

Use heaviside(). See this help doc: https://www.mathworks.com/help/symbolic/heaviside.html

alrededor de 20 horas ago | 0

| accepted

Answered

How can I use data from .mat file into spline function?

Here is the corrected code: ... save('data.mat', 'x','y'); % Your variable names called x, y and you need to save them her...

How can I use data from .mat file into spline function?

Here is the corrected code: ... save('data.mat', 'x','y'); % Your variable names called x, y and you need to save them her...

1 día ago | 0

| accepted

Answered

How can I use data from .mat file into spline function?

If all the data of x, y are saved under X, Y names from ginput in a sequenctial order in DATA.mat file. You can load them and ...

How can I use data from .mat file into spline function?

If all the data of x, y are saved under X, Y names from ginput in a sequenctial order in DATA.mat file. You can load them and ...

1 día ago | 0

Answered

How to determine number of rows in an excel sheet without uploading it into matlab

Just to see the overall size without importing the data from a *.csv file, uiimport() can be used but this fcn is quite slow tho...

How to determine number of rows in an excel sheet without uploading it into matlab

Just to see the overall size without importing the data from a *.csv file, uiimport() can be used but this fcn is quite slow tho...

1 día ago | 0

Answered

Plotting several Polarplots below each other

Do you have any mathematical formulation depicting the relatioship between the ellipses and Z axis? If you do then that can be u...

Plotting several Polarplots below each other

Do you have any mathematical formulation depicting the relatioship between the ellipses and Z axis? If you do then that can be u...

1 día ago | 0

Solved

Volume of a box

Given a box with a length a, width b, and height c. Solve the volume of the box.

1 día ago

Solved

Who invented zero?

We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

1 día ago

Solved

Back to basics 9 - Indexed References

Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

1 día ago

Solved

Matlab Basics - Convert a row vector to a column vector

Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

1 día ago