Réponse apportée
For-loop using only last iteration
Inside the loop C = zeros(1,10) + A; the function "zeros(1,10)" is assigning zeros to the entire C vector, then adding A. Als...

plus d'un an il y a | 0

Réponse apportée
How can i merge the signals from the sensors into 1 signal ?
The merge block is not used to combine signals - it is used to select one of two triggered signals. The two inputs are signals ...

plus d'un an il y a | 0

Réponse apportée
Output for Accelerator Model
I think there is a misunderstanding. The way I read it, if you use a large number of inport and outport blocks (at the root lev...

plus d'un an il y a | 0

| A accepté

Réponse apportée
What kind of numerical method is used for the inverse kinematic block at simulink?
Here is a link to the Matlab documentation: Inverse Kinematics Algorithms

plus d'un an il y a | 0

| A accepté

Réponse apportée
Hold a value indefinitely once a condition becomes true
Try This:

plus d'un an il y a | 0

| A accepté

Réponse apportée
Trying to plot array points on a graph.
You might also try this: [row,col] = size(AA); % AA is the data matrix figure; for ii=1:row for jj=1:col if ...

plus d'un an il y a | 0

Réponse apportée
How to connect the two signals in one signal in MATLAB Simulink? I mean first signal finishes second signal starts.
You description of the problem is confusing to me, bu the statement in the title "first signal finishes second signal starts" ...

plus de 3 ans il y a | 0

Réponse apportée
Numerical Integration in Matlab
There seem to be two problems: 1) your function "fun" returns "NaN" at zero, so you cannot integrate starting from zero. You n...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Simulink counter block having an initial starting value of -1
Yes, the two counter blocks in the library do not allow you to set the initial value. Whenever I need to use a counter, I usual...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Finding the roots of an equation using Newton-Raphson method but I don't know the equation!
You use a numerical approximation for the derivative. Start at some initial guess for x & y. take a small step, and compute th...

plus de 3 ans il y a | 1

Réponse apportée
Implementing Angles as an input in Simulink
It appears (based on the icon on the block) that the block labeled "Robot Controler" is a Matlab function block. In order to a...

plus de 3 ans il y a | 0

Réponse apportée
Pendulum using Runge Kutta
Yes, there are a few things wrong with this code. James Tursa has identified one obvious error. Another problem is with the lo...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to return the index of time steps in Simulink?
One way to do this is to put a step counter in the block. This will keep track of the number of times the block is executed. T...

plus de 3 ans il y a | 0

Réponse apportée
Why is my code not working?
Not entirely sure if this is the reference in the error message, but this line has unballanced parentheses: f = (1/(t-t^(-1))*...

plus de 3 ans il y a | 0

Réponse apportée
SIR Simulink Model Function Block
In the Simulink library browser, on the "sources" pallet, you will find a "clock" function. Use this to create a time signal. ...

presque 4 ans il y a | 0

Réponse apportée
How can one do this calculation?
Look into using logical indexing. Not my strong point, but for example, if A is the 3 x 10 matrix, you can select all cases whe...

presque 4 ans il y a | 0

Réponse apportée
Kalman Filtering for smoothing GPS speed data
The problem is with this line: P = (1-KG)*P; This causes the gain P to continuously decrease. After a while, the gain P is ve...

presque 4 ans il y a | 2

| A accepté

Réponse apportée
numerical derivate and central difference
Here are some Numerical difference formulas using the central difference method (substitute dt = h). You can find more formulas...

environ 4 ans il y a | 1

Réponse apportée
Meaning of the following: function [y1,...yn] = input()
It simply means that there are no user inputs to this function. The long list of variable names are returned from the function....

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Angle Between two vectors.
Given two vectors A and B, the dot product of the two vectors (A dot B) gives the product ABcos(ang), so to get just the angle, ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to summarize this code?
You could use a switch case structure, that would be a bit more compact. it would look like this: switch davar1.CC_CHECK ...

environ 4 ans il y a | 2

| A accepté

Réponse apportée
help fixing the Heuns method
Heun's method is otherwise known as "explicit trapezoidal method", "improved Euler's method" or "modified Euler's method". Th...

environ 4 ans il y a | 0

Réponse apportée
I need help coding a human cannonball ignoring air resistance
Assuming zero drag and relatively low muzzle velocity ( acceleration due to gravity = constant), the point-mass trajectory can b...

plus de 4 ans il y a | 1

Réponse apportée
Runge Kutta 4th Order Method
I think the problem is the T argument. in k1 you have a capital T, which is a 3-vector in k2, k3, and k4 it is a lower case t,...

plus de 4 ans il y a | 0

Réponse apportée
Matlab Homework that im struggling with
To prompt a user to enter a value, try: x = input('Enter the number of equations (from 2 to 5): \n')

plus de 4 ans il y a | 0

Réponse apportée
I need help with this script
Try this: T = input('Enter your temperature') if T<=96 disp('You are either hypothermic or a zombie') elseif T<99 d...

plus de 4 ans il y a | 0

Réponse apportée
Ballstic Impact of Bullets on armor
I don't know af any specific ballistics tools. You should browse the a list of Matlab products at this link: Matlab Products

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to find theta and theta dot in a simple pendulum simulation in MATLAB.
I'm not sure at all what your system equations are. The first rule of dynamics is where you have translational modes of motion ...

plus de 4 ans il y a | 0

Réponse apportée
What is a "system variable" in a Simulink model?
In this context, the "system" is the device that you are modelling. Therefore, a "system variable" is one of the variables in y...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Undefined function 'simset' for input arguments of type 'char'.
simset is an obsolete function. See documentation here. It says to use the Configuration Parameters dialog box.

plus de 4 ans il y a | 0

Charger plus