How can I combine a delay with an amplitude weighting in simulink?
5 次查看(过去 30 天)
显示 更早的评论
Hello,
EDIT: ------------
Adding maths might help. I'd like to start with some sine:
*sin(2*π*F*t + )
And then split it into several, delayed, sine waves (here I'll use 2 for clarity):
*sin(2*π*F*t + )
*sin(2*π*F*t + )
Where and are the phase offsets caused by the delay, and A2, A3 are reduced amplitudes according to some distribution (say ). The phase delays and amplitudes are then, obv, assessed at the same time.
Original Message: -------
I am trying to build a Simulink system where I take a given input singal wave, split it and pass one branch through a delay. The amplitude of the delayed wave would then weighted, and where I can pick any weighting scheme. The output of this combined delay-and-weight would be a signal with some phase offset according to the delay and an amplitude modification from my scheme - e.g. an exponential decay with some time constant. I would then recombine these waves and check the effects of variation in weighting on the interference of the two waves.
I have been able to get a basic sine wave, and to get a manual (static) delay using the Transport Delay block and a static dB loss on that line to approximate this but it owuld be good to build the complete effect.
This might be excruciatingly simple, but I cannot think how to achieve it.
For context, I have a structured light input - sine with frequency F - hitting some fluorescent material, which responds with standard fluorescent lifetime decay physics. The fastest repsonse is effectively instant in my system, but the tail is long. I would like to model what I epxect to see as I, say, increase the frequncy of the input wave or change the decay lifetime of the material. Once I have it working for a simple sine input wave I can then worry about making that input more complicated.
Any help would be much appreciated.
0 个评论
采纳的回答
Renato SL
2019-8-8
I'm pretty sure my answer does not have a solid theoretical background since I basically do a trial & error, but I managed to make the attached file.
When you said about exponential decay, I can only think about defining my own function using MATLAB Function block and somehow incorporate the evolution of time there, hence the function decay.
This is definitely not a straightforward answer, but I hope this helps or at least inspires you to make something that suits your needs.
3 个评论
Renato SL
2019-8-9
Regarding the number of branches, maybe you can have only 2 branches from the source of the signal.
The first one would be for the original, undisturbed signal.
The second one would go inside a subsystem. Inside this subsystem is where you define how many branches you have with different values of delay and gains. The number of output of the subsystem will follow accordingly.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Error Detection and Correction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!