Question

Goto's and From's performance in Generated C code

Hi, I personaly like to use Goto and From blocks in order to have a easy to read model in Simulink. But now the question came ...

20 days ago | 0 answers | 0

Answered

Input port won't go away by Delete key

Found the solution. I just did in the command window: delete_block('path to the block')

Input port won't go away by Delete key

Found the solution. I just did in the command window: delete_block('path to the block')

3 months ago | 0

| accepted

Question

Input port won't go away by Delete key

Hi, Using matlab 2017b with Simulink, By accident I paste a Input port from the library browser. Then I try to remove it but ...

3 months ago | 1 answer | 0

Question

Smooth or filter too noisy data in simulink

Hi I have a control model in simulink. I use a feedback controller where states are estimated using a observer. All states are...

1 year ago | 0 answers | 0

Question

Tire model with dynamic rolling radius

Hi I am desperately searching for a tire model whithin which a dynamic rolling radius is applied based on magic formula. A tire...

1 year ago | 1 answer | 0

Question

Sliding mode observer gain

I have a nonlinear system model that I try to observe using 2nd order sliding mode observer. However I try to find the proper ga...

2 years ago | 0 answers | 0

Answered

Plot extreme values on a time series

Lets say you have a timeserie output where in one column you have Time and in the other you have Data:1 then for finding the ma...

Plot extreme values on a time series

Lets say you have a timeserie output where in one column you have Time and in the other you have Data:1 then for finding the ma...

2 years ago | 1

Question

set initial value for a signal and then rewrite it

Hi, I have a loop in which an observer observe the states and then backward it to a controller. There need to be an initial val...

2 years ago | 1 answer | 0

Answered

The states gets changed while observing

The reason is actually the time line or time series. I send the results to workspace and I saw that the time samples are differe...

The states gets changed while observing

The reason is actually the time line or time series. I send the results to workspace and I saw that the time samples are differe...

2 years ago | 0

| accepted

Question

The states gets changed while observing

Hi, I have an control input T that goes straight to a system. In that system I solve a differential equation system with form o...

2 years ago | 1 answer | 0

Question

How to select eaach element from a matrix multiplication with bus selector

I have a nxn Jacobian matrix and a nx1 vector that I multiplied and the result is a nx1 vector. I need to select each element th...

2 years ago | 1 answer | 0

Answered

Latex in plot title with variables

Solved it using: mytitleText = [' Slip regulation \lambda for K_{\sigma} = ',num2str(Ksigma),' K = ', num2str(K),' and \ep...

Latex in plot title with variables

Solved it using: mytitleText = [' Slip regulation \lambda for K_{\sigma} = ',num2str(Ksigma),' K = ', num2str(K),' and \ep...

2 years ago | 0

| accepted

Question

Latex in plot title with variables

Hi, I'm running Matlab R2014b. Trying to make a nice plot with : title([' Slip regulation \lambda for K_{\sigma} = ',num2st...

2 years ago | 1 answer | 0

Question

How to make this integral

Hi Suppose we have following equation: S(x,t) = p(x,t) + k * int_0^t h(\tau) d\tau. What is the difference between this a...

2 years ago | 1 answer | 0

Question

Simulink IRC channel on t ex Freenode

Hi, I wonder why there isnt any channels on for instance Freenode for Simulink. There is already a channel on freenode for matl...

2 years ago | 0 answers | 0

Question

solving for x in a state space model

Hi, Assume that we have a diff equation as : <<https://latex.codecogs.com/gif.latex?%5Cdot%7Bx%7D%20%3D%20Ax%28t%29+%20...

2 years ago | 1 answer | 0

Question

Saturation function in Simulink

Hi, I would like to implement following block in simulink. How do I do it in Simulink: U = u_d - K/b * sat(σ /θ) where: s...

2 years ago | 2 answers | 0

Question

2th order Sliding mode controller / observer In simulink

Hi, I would appritiate if somesone could provide a toturial on how to make a model of 2th order sliding mode controller and obs...

2 years ago | 1 answer | 0

Question

Making interpolate of 3 set of data

Hi, I have some space data (or data space) from measurement that shows the position of the a mass. These data are given in a st...

3 years ago | 1 answer | 0

Answered

Why do I receive License Manager Error -9?

I have tried all the step in the comments and in the article itself. it does not work. I dont know what the problem is. Please l...

Why do I receive License Manager Error -9?

I have tried all the step in the comments and in the article itself. it does not work. I dont know what the problem is. Please l...

4 years ago | 0

Answered

Calculate PSD using FFT

Why xdft = xdft(1:length(x)/2+1); % what does that mean? xdft(2:end-1) = 2*xdft(2:end-1); %? dubbel side? and why? I do...

Calculate PSD using FFT

Why xdft = xdft(1:length(x)/2+1); % what does that mean? xdft(2:end-1) = 2*xdft(2:end-1); %? dubbel side? and why? I do...

7 years ago | 0

Question

Calculate PSD using FFT

Hi, The question is to calculate PSD using FFT function in MATLAB. Ive already done it with pwelch command in MATLAB and now it...

7 years ago | 3 answers | 0