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

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

42 minutes ago

Solved

04 - Scalar Equations 1

Define the variable a: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> Use this to calculate x: <<http://samle.dk/STTBD...

1 hour ago

Solved

02 - Vector Variables 4

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 1...

1 hour ago

Solved

All your base are belong to us

Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

1 hour ago

Solved

Do you like your boss?

Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

1 hour ago

Solved

Damping of Servomotors with Tachometer Feedback

In Control Engineering, servomotors with tachometer feedback can be modeled by the second order system K / [J*s^2 + (B + K*K...

2 hours ago

Solved

Create an n-by-n null matrix and fill with ones certain positions

The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

12 hours ago

Solved

Get the area codes from a list of phone numbers

Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-6...

14 hours ago

Solved

Symmetry of vector

Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

15 hours ago

Solved

Find the hypotenuse

Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

16 hours ago

Solved

Wind Chill Computation

On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

16 hours ago

Solved

Sum the numbers on the main diagonal

Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

16 hours ago

Solved

Determine the square root

Determine the square root of the value the user has entered, n.

16 hours ago

Solved

03 - Matrix Variables 6

Make _fMat_ be a 5x3 matrix of random integers with values from -3 to 3 (Hint: use *randi*)

16 hours ago

Answered

problem in the effect of aerodynamics

As it is, the vehicle body 3DOF block ([Simulation 3D Vehicle with Ground Following]) in Simulink does not include aerodynamics ...

problem in the effect of aerodynamics

As it is, the vehicle body 3DOF block ([Simulation 3D Vehicle with Ground Following]) in Simulink does not include aerodynamics ...

16 hours ago | 0

Answered

Root finding and plotting

There are a couple of ways to find roots of this eqn: (1) ginput() --> graphical method, e.g.: [Roots, y] = ginput(3) % clic...

Root finding and plotting

There are a couple of ways to find roots of this eqn: (1) ginput() --> graphical method, e.g.: [Roots, y] = ginput(3) % clic...

17 hours ago | 1

Answered

How to split a large image into many small images?

Here is a nice discussion on how to split images with nlfilter() suggested by Rik: https://www.mathworks.com/matlabcentral/an...

How to split a large image into many small images?

Here is a nice discussion on how to split images with nlfilter() suggested by Rik: https://www.mathworks.com/matlabcentral/an...

17 hours ago | 0

Answered

Fitting a Grafted Distribution

Maybe chop off the long tails on both sides and then perform the calcs even if that influences on the accuracy a bit.

Fitting a Grafted Distribution

Maybe chop off the long tails on both sides and then perform the calcs even if that influences on the accuracy a bit.

22 hours ago | 0

Answered

MatLab crashes when I insert a large dataset that I am assigning to a matrix

Probably it is related to allocated swap memory for matlab. You can play with tall() to fix this issue. Here is a nice help doc...

MatLab crashes when I insert a large dataset that I am assigning to a matrix

Probably it is related to allocated swap memory for matlab. You can play with tall() to fix this issue. Here is a nice help doc...

22 hours ago | 0

Answered

For loop every combination

Go over this help documentation and will understand how and what to do with [for ... end] loop iteration https://www.mathworks....

For loop every combination

Go over this help documentation and will understand how and what to do with [for ... end] loop iteration https://www.mathworks....

22 hours ago | 0

Answered

Attaching a simulink model, can anyone tell the equations governing ?

It is quite simple as follows: 2/3*(va*cos(theta)+vb*cos(theta-2*pi/3)+vc*cos(theta+2*pi/3))=vd -2/3*(va*sin(theta)+vb*sin(the...

Attaching a simulink model, can anyone tell the equations governing ?

It is quite simple as follows: 2/3*(va*cos(theta)+vb*cos(theta-2*pi/3)+vc*cos(theta+2*pi/3))=vd -2/3*(va*sin(theta)+vb*sin(the...

22 hours ago | 0

Answered

Plot - Delete grid lines between yticks

grid off % The rest you can check from Property Inspector of Figure

Plot - Delete grid lines between yticks

grid off % The rest you can check from Property Inspector of Figure

1 day ago | 0

| accepted

Solved

Project Euler: Problem 3, Largest prime factor

The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

1 day ago

Solved

How many days in a month?

Return the number of days in a given month in 2017. If the input is not a valid month number, return -1. Examples: Input...

1 day ago

Solved

Separate even from odd numbers in a vector - with a loop

*Using a loop*, rearrange a vector of integers such that the odd numbers appear at the beginning, and even numbers at the end. T...

1 day ago

Solved

03 - Matrix Variables 2

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3b.png>> A 9x9 matrix of zeros, but with the following v...

1 day ago

Solved

Find the nearest prime number

Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

1 day ago

Solved

Octoberfest festival

A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...

2 days ago

Answered

strange for useing ' legend'

With this syntax on legend settings, it is working ok. close all; clear all; ... ... titlestr=''; xLabelStr='test1';...

strange for useing ' legend'

With this syntax on legend settings, it is working ok. close all; clear all; ... ... titlestr=''; xLabelStr='test1';...

2 days ago | 0

Answered

Unit delay for adaptive filter!

(1) Simulink has a unit delay block that can be employed to resolve this issue in Simulink environment. (2) Help documentation ...

Unit delay for adaptive filter!

(1) Simulink has a unit delay block that can be employed to resolve this issue in Simulink environment. (2) Help documentation ...

2 days ago | 0