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

Answered

How to find global minimum of a schwefel function

You can try optimization toolbox's fsolve nonlinear equation solver with "Trust region dogleg" algorithm.

How to find global minimum of a schwefel function

You can try optimization toolbox's fsolve nonlinear equation solver with "Trust region dogleg" algorithm.

16 hours ago | 0

Question

Error Simulating Model When Enabling the 3D Engine with the Vehicle Dynamics Blockset in MATLAB R2019b

Hi Mathworks Developers and active users, I have read this post on the 3D engine problem when it is enabled. However, the pro...

2 months ago | 1 answer | 0

Answered

How can you plot the output of a for loop?

Hi, if I have understood your exercise correctly, you'd like to plot the year vs. average values of the variable TG. If so h...

How can you plot the output of a for loop?

Hi, if I have understood your exercise correctly, you'd like to plot the year vs. average values of the variable TG. If so h...

3 months ago | 0

| accepted

Answered

How can you plot the output of a for loop?

I see your mat contains bunch of data. All variables are of the same size 3635-by-1. So you wish to plot what variable vs. what ...

How can you plot the output of a for loop?

I see your mat contains bunch of data. All variables are of the same size 3635-by-1. So you wish to plot what variable vs. what ...

3 months ago | 0

Answered

How can you plot the output of a for loop?

Can you share your data file in order to be able to address your question correctly?

How can you plot the output of a for loop?

Can you share your data file in order to be able to address your question correctly?

3 months ago | 0

Answered

find a minima in a symbolic equations that have multiple symbolic variables and a stochastic variable

I think the problem in equation diff11 that you are trying to solve it for two unknowns.

find a minima in a symbolic equations that have multiple symbolic variables and a stochastic variable

I think the problem in equation diff11 that you are trying to solve it for two unknowns.

3 months ago | 0

Solved

Perimeter of a semicircle

Given the diameter d, find the perimeter of a semicircle

3 months ago

Solved

Given a square and a circle, please decide whether the square covers more area.

You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

3 months ago

Solved

Approximation of Pi

Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

3 months ago

Answered

how to fix Summation index error?

Use this command: symsum(symsum((vectors(:,m)*(vectors(:,n)')))) instead of: symsum(symsum((vectors(:,m)*(vectors(:,n)')),m,...

how to fix Summation index error?

Use this command: symsum(symsum((vectors(:,m)*(vectors(:,n)')))) instead of: symsum(symsum((vectors(:,m)*(vectors(:,n)')),m,...

3 months ago | 0

| accepted

Answered

How do I plot timeseries, including event like earthquake?

Here is corrected code: fileID = fopen('filename.txt', 'r'); C = textscan(fileID, '%s %f'); % Presumably your file does no...

How do I plot timeseries, including event like earthquake?

Here is corrected code: fileID = fopen('filename.txt', 'r'); C = textscan(fileID, '%s %f'); % Presumably your file does no...

3 months ago | 0

Answered

How do I plot timeseries, including event like earthquake?

Hi, In this case, use one of these data import options: (1) data import using uiimport('DATA_file_name.txt') that creates a ...

How do I plot timeseries, including event like earthquake?

Hi, In this case, use one of these data import options: (1) data import using uiimport('DATA_file_name.txt') that creates a ...

3 months ago | 0

Solved

Crop an Image

A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. The element values ...

4 months ago

Solved

Rescale Scores

Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

4 months ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

4 months ago

Solved

Find the Best Hotels

Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

4 months ago

Solved

Find MPG of Lightest Cars

The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

4 months ago

Solved

Longest run of consecutive numbers

Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

4 months ago

Solved

Verify Law of Large Numbers

If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

4 months ago

Solved

Calculate Inner Product

Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

4 months ago

Solved

Calculate BMI

Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

4 months ago

Solved

Plot Damped Sinusoid

Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

4 months ago

Solved

Calculate a Damped Sinusoid

The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

4 months ago

Solved

Solve a System of Linear Equations

*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

4 months ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

4 months ago

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

4 months ago

Solved

Number of Even Elements in Fibonacci Sequence

Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

5 months ago