How to alter Comet Speed
I don't see a way to control the speed of the comet function. There is a discussion of controlling the speed of an animated lin...

mehr als ein Jahr ago | 0

Incorrect Answer Calculated For Force Calculation
It is assumed that you want to find F3 and y such that the system is in equilibrium (this is not stated) (and I disagree with D...

mehr als ein Jahr ago | 0

Transformation Matrix Between Two Cartesian Systems
This is a very generic question and there are many ways to answer. It depends on what information you have about the two coordi...

mehr als ein Jahr ago | 0

Why is ode45 changing the value of the state variable between calls to my dynamics function?
ode45 implements the Dormand-Prince method which is an embedded 4th / 5th order Runge-Kutta method. For every "step" in the sol...

mehr als ein Jahr ago | 0

| accepted

Implement friction into a model, related to the velocity. (Missile Launch)
This question is familiar. look here.

mehr als ein Jahr ago | 0

How to make a marker circle bold?
plot(x, y, 'ro', 'linewidth',2);

mehr als ein Jahr ago | 0

| accepted

how can i resolve this equation Runge kutta method
Ths is the equation for a parabola. y'' = -1 y' = -y y = -1/2 y^2 No need for a numerical approximation.

mehr als ein Jahr ago | 0

Step 1: Draw a free body diagram that shows the body with all of the forces that act on it and the coordinate frame(s) that are...

mehr als ein Jahr ago | 0

| accepted

How to calculate the slope from geopraphical coordinates?
First of all, you should consider the relationship between the WGS84 lat/lon/alt and the ECEF frame. Altitude is perpendicular ...

mehr als ein Jahr ago | 1

| accepted

calculate rotation matrix in 3D
I'll assume that we make the reference frame right-handed by negating the axis_3 vector such that axis_1 = [2.7239 -0.2014 -...

mehr als ein Jahr ago | 1

| accepted

Translational motion of a rotating object.
To begin, Chasles' theorem states that translational motion and rotational motion obey the law of superposition. Therefore, you...

mehr als ein Jahr ago | 0

change variable value based on other variable in if loop
Your input command is requesting a string input: in1 = input('first: ','s'); in2 = input('second: ','s'); This results in in1...

mehr als ein Jahr ago | 1

| accepted

I don't know the problem involved Backward difference.
I am assuming that your question is that you don't understand Simpson's rule. Below is an exerpt from Wikipedia: Simoson'...

mehr als ein Jahr ago | 0

| accepted

1-2-1 or X-Y-X rotation matrix not supported
I recently cataloged all of the permutations of the 2 and 3 axis planar rotations. It is easy to write your own functions. See...

mehr als ein Jahr ago | 0

Extracting data from simout MATLAB work space
simout is a timeseries structure. I like to extract separate vectors from the structure, for example: t = timout.time(simout.t...

mehr als ein Jahr ago | 0

| accepted

Where can I publish Matlab-compiled software?
If you want to share the source code, you can post it on Matlab File Exchange

mehr als ein Jahr ago | 0

| accepted

In my Simulink model I would like to conditionally write output data to selectable .mat files in different relative directories.
This sounds like a rather sophisticated way of constructing output. I'm not sure if that is easily acomplished with the "to fil...

mehr als ein Jahr ago | 0

| accepted

minimum feret diameter of particle

mehr als ein Jahr ago | 0

Vlookup equivalent function for matlab
If your data is in a 2D table (matrix) and you want to locate a column that matches the exact value from another column, then lo...

mehr als ein Jahr ago | 1

| accepted

How calculate the second and third numerical derivative of one variable f(x)
The Matlab "diff" function is basically the Backward difference formula. There are much more accurate ways to compute numerical...

mehr als ein Jahr ago | 0

Runge kutta order 2 by hand
In the statement Y(1) = [t(1);y(1)] the simi-colon ";" indicates you are attempting to put 2 rows of numbers into a single ro...

mehr als ein Jahr ago | 0

Correct way to detect Zero crossing
A thought you might want to consider: if you multiply the current value, y(i) by the previous value y(i-1), this product is on...

mehr als ein Jahr ago | 2

You can use a switch to select between the two different output options that you want, and there are a number of ways to activat...

mehr als ein Jahr ago | 0

| accepted

Ralston's method function
There is an error in your function in the k2 term. For Ralstons method, it should be: k1 = h*f(t(i), y(i)); k2 = h*( f( t(i) ...

mehr als ein Jahr ago | 0

First and Second Order Central Difference
For starters, the formula given for the first derivative is the FORWARD difference formula, not a CENTRAL difference. (here, ...

mehr als ein Jahr ago | 0

| accepted

How can I integral Acceleration-time data to Velocity with removing drift?
It seems that what you are asking cannot be done. More information is needed. In order to remove an error in the data, you nee...

mehr als ein Jahr ago | 1

circle with three points
Try this.

mehr als ein Jahr ago | 0

Unit step function explanation
Double is simply the data type , i.e. double precision. (T>=0) is a logical 0 or 1. double converts the answer to double preci...

mehr als ein Jahr ago | 1

| accepted

Solving Linear System of Equations with a Real Parameter
Using the symbolic toolbox, you can solve it as follows: 1) Define symbolic quantities; syms A B x1 x2 x3 x4 lamda 2) Write t...

mehr als ein Jahr ago | 1

| accepted