Community Profile # dab483

Active since 2011

#### Statistics

• • #### Content Feed

View by

Question

How to apply adaptive algorithm using k=block.CurrentTime in the s-function level2?
Here is my s-function level2 algorithm for EKF function Update(block) Q = block.DialogPrm(2).Data; ??? this Q wil...

7 years ago | 0 answers | 0

### 0

Question

Matlab to s-function level2
Let say this is my algorithm in s-function level2 function Update(block meas = block.InputPort(1).Data; %% equ...

7 years ago | 0 answers | 0

### 0

Question

how to coding the system with pid controller?
Hi, how to coding the system below in closed loop system with pid control? x(:,:,i+1)=fdc(x(:,:,i),u(:,:,i),dt); %%op...

7 years ago | 0 answers | 0

### 0

Question

How to coding and plotting
Hi i have this Page hinkley test sumPH=0 for t=1:Nt mew2=(inv(Nt)*sum((y2-xhat2))); vari2=(inv(N...

7 years ago | 1 answer | 0

### 1

Question

How can i coding the residual sequence over a time window ?
Hi, I have this EKF Equation. PMinus(:,:,i) = A(:,:,i)*P(:,:,i)*A(:,:,i)'+ Q(:,:,i); xhat(:,:,i+1)...

7 years ago | 0 answers | 0

### 0

Question

How to use Wald Sequence detection method to test the filtering residual?
Hi, I have this EKF Equation. PMinus(:,:,i) = A(:,:,i)*P(:,:,i)*A(:,:,i)'+ Q(:,:,i); xhat(:,:,i+...

7 years ago | 0 answers | 0

### 0

Question

differentiate between y(:,:,i+1) and y(:,:,i) in simulink
If using matlab i can differentiate between these two: y(:,:,i+1) and y(:,:,i) what about simulink? i need to use both ...

7 years ago | 0 answers | 0

### 0

Question

How do I plot d using Matlab
I have this: d(:,:,i) = 0.005*sin(0.5*pi*t(i))*cos(0.5*pi*t(i)) i=1:Nt t = linspace(0,100,Nt+1) Nt=1000 How d...

7 years ago | 2 answers | 0

### 2

Question

how to solve H using Matlab?
Hi, kind of blur right now. H*[1 20.758 0]'=[1 20.758 0 0]' ' = transpose Solve H using Matlab. Thanks the answe...

7 years ago | 1 answer | 0

### 1

Question

Matlab code for adaptive kalman filter
Hi, Does any one have matlab code for ADAPTIVE KALMAN FILTER? Adaptive in this means the unknown process noise, Q and measur...

8 years ago | 0 answers | 0

### 0

Question

how to implement moving window
Hi, I have a question regarding moving window implementation. I have this equation. how to implement/coding it in Matlab where m...

8 years ago | 0 answers | 0

### 0

Question

help using feval with sigma points
Hi i have a function represent by: function [y] = ffun(x,t); if nargin < 2, error('Not enough input arguments.'); en...

8 years ago | 1 answer | 0

### 1

Question

convert to s-function level 2
In s-funcion level 1, i have this function sys=mdlGetTimeOfNextVarHit(t,x,u) sampleTime = 1; % Example, set the...

8 years ago | 1 answer | 0

### 1

Question

How do i do moving average in s-function level 2?
Hi i want to do moving average in s-function level 2, When using matlab script i wrote this formula where r=residual with size ...

8 years ago | 1 answer | 0

### 1

Question

Sliding window technique-Transpose on ND array is not defined
Hi, I am employing a sliding window technique to compute the sample mean for N (window) predicted residuals (r), instead of ...

8 years ago | 0 answers | 0

### 0

Question

problem in matlab programs
Hi, I'm having problem to plot my figure when i try to run the program several times to get an average value of rmse. I know the...

9 years ago | 1 answer | 0

### 1

Question

randn and band limited white noise
In Matlab programming i generate noise using randn such that : randn('state',sum(100*clock)) xdot = xdot + sqrt(dt * Q) * ...

9 years ago | 0 answers | 0

### 0

Question

Hi, how can i exactly present this Gaussian noise in matlab: Noise = sqrt (R) * randn using Simulink?

9 years ago | 1 answer | 1

### 1

Question

Measurement time step and integration time step
Hi, i saw people using measurement time step and integration time step when performing the algorithmm using Matlab. What's t...

9 years ago | 0 answers | 0

### 0

Question

compute computational time
Hi, i am running a simulation which have 2 blocks s-function (each represents different algorithm) in one simulink window. i...

9 years ago | 1 answer | 1

### 1

Question

how can i apply matlab script to simulink environment?

9 years ago | 1 answer | 0

### 1

Question

matlab coding to s-function level 2 coding.
Hi, Using Matlab, i can initialize the particle filter like this: for i = 1 : N xhatplus(:,i) = xhat + sqrt(P) * ...

9 years ago | 1 answer | 0

### 1

Question

plotting RMSE
Hi, i am calculating root mean square error (RMSE) of true state(x) and estimated state (xhat)using the equation below: ...

9 years ago | 1 answer | 0

### 1

Question

Discrete systems using s-function
Hi, i have this discrete function, and try to simulate it using s-function level 2, where k represent simulation length fr...

9 years ago | 1 answer | 0

### 1

Question

integral of the squared error
does anyone knows how can i code using matlab the integral of the squared error from time 0 to time=T. Let say i have an err...

10 years ago | 1 answer | 0

### 1

Question

Update section using Embedded matlab
MATLAB file S-Function contains an update and derivative section and an Output section. If using embedded, i need to use int...

10 years ago | 1 answer | 0

### 1

Question

user-defined functions
can we use multiple user-defined functions block (like s-function level 1, level 2, embedded matlab function) in one simulink mo...

10 years ago | 1 answer | 0

### 1

Question

Integrate in embedded matlab function
Hi, i am developing continuous EKF using embedded matlab function.In this i need to integrate xhatdot and Pdot. Can i integra...

10 years ago | 2 answers | 0

### 2

Question

Positive definite solution
i need to solved for different values of gama until its lowest value, which gives a positive definite solution for P is found, s...

10 years ago | 2 answers | 1