# non linearity of sensor

6 visualizaciones (últimos 30 días)
Mat CR el 20 de Nov. de 2019
Editada: Mat CR el 6 de Dic. de 2019
hello there
i am investigating the effect that nonlinearity will have on my inertial sensors and i am having some problems constructing a code to show the effects, basically i am trying to generate a random non-linear sine wave which i then want to plot on top of my linear actual sine wave signal.
##### 1 comentarioMostrar -1 comentarios más antiguosOcultar -1 comentarios más antiguos
Daniel M el 20 de Nov. de 2019
Editada: Daniel M el 20 de Nov. de 2019
What do you mean by random non-linear sine wave?
A*sin(2*pi*B + C) + D
% A = amplitude (vertical elongation)
% B = frequency (horizontal elongation)
% C = phase shift (horizontal transformation)
% D = baseline (vertical transformation)
Which of A, B, C and/or D do you want to be random and nonlinear?
If you're not sure, perhaps a drawing would help.

Iniciar sesión para comentar.

### Respuestas (1)

Daniel M el 20 de Nov. de 2019
Editada: Daniel M el 20 de Nov. de 2019
In the figure I don't see a different value for B. I see a phase shift (C is close to but less than pi/4) and decreased amplitude (A ~ 0.8). If you are interested in a changing frequency , then I suggest you look into the chirp function.
Edit: sorry, I only saw part a. If you want something like part b, it looks like there is coupling of some higher frequency behaviour with the phase of the original signal. That is, when the signal is at a peak or trough, there is some jitter/noise. It's not straightforward how to represent this, but you could try adding another signal composed of various noise (rand or randn) and step functions.
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

### Categorías

Más información sobre Downloads en Help Center y File Exchange.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by