**Statistics**

RANK**10,089**

of 242,873

REPUTATION**3**

CONTRIBUTIONS

**30** Questions

**0** Answers

ANSWER ACCEPTANCE **
43.33%
**

VOTES RECEIVED**3**

RANK

of 16,985

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

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

answersQuestion

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

answersQuestion

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

answersQuestion

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

answerQuestion

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

answersQuestion

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

answersQuestion

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

answersQuestion

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

answersQuestion

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

answerQuestion

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

answersQuestion

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

answersQuestion

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

answerQuestion

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

answerQuestion

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

answerQuestion

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

answersQuestion

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

answerQuestion

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

answersQuestion

random number using simulink

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

9 years ago | 1 answer | 1

### 1

answerQuestion

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

answersQuestion

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

answerQuestion

matlab script to simulink

how can i apply matlab script to simulink environment?

9 years ago | 1 answer | 0

### 1

answerQuestion

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

answerQuestion

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

answerQuestion

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

answerQuestion

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

answerQuestion

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

answerQuestion

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

answerQuestion

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

answersQuestion

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

### 2

answersQuestion

Discrete time nonlinear system

How can i develop this discrete-time nonlinear system in simulink? [x]=[0.01x1 - x2; x1 - 0.003x2^2]

10 years ago | 1 answer | 0