need data about tach signal?
    11 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    LAKSHMAN
 el 11 de Ag. de 2014
  
    
    
    
    
    Respondida: Xiaoxing Wang
    
 el 29 de Sept. de 2024
            greetings !! I want to know about tach signal(like signal from tachometer) in MATLAB and its generation in matlab like attached image(Might be aperiodic).. And i want to add some Gaussian noise to that signal to find frequency b/w peeks.
I tried using "pulse train" but not getting as i like..
0 comentarios
Respuesta aceptada
  dpb
      
      
 el 11 de Ag. de 2014
        Starting point could be something (from the pulstran example)...
>> t = 0 : 1/1e3 : 1;         % 1 kHz sample freq for 1 sec 
   d = 0 : 1/5 : 1;           % 5 Hz repetition freq 
   y = pulstran(t,d,@tripuls,0.01);
   plot(t,y)
>> xlim([-0.05 1.05])
You can then apply a windowing function of length(y) to desired shape to modify amplitude and add noise as desired. Fix up frequencies, etc., as desired, obviously; I just fiddled with the example parameters slightly to show more pulses over the same frequency as the example and with a symmetric pulse.
Más respuestas (1)
  Xiaoxing Wang
    
 el 29 de Sept. de 2024
        You can also get a tacho signal like this
fs = 1e3; %* sampling frequency
fr = 5; %* repetition frequency
t = 0:1/fs:1;
pulse = zeros(length(t),1);
idx = (fs/fr):(fs/fr):length(t);
idx = round(idx);
pulse(idx) = 1;
0 comentarios
Ver también
Categorías
				Más información sobre Switches and Breakers 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!


