preethi19
Full Member level 5
- Joined
- Jun 30, 2014
- Messages
- 273
- Helped
- 0
- Reputation
- 0
- Reaction score
- 1
- Trophy points
- 16
- Activity points
- 3,474
hi i need to generate F=[F0,F1,........Fn-1] wer n=16 such that lFnl=1..... so i understand i need 16 freq samples whose magnitude sums upto 1..... now i need to generate it in matlab...... can anyone pls help me... like give me a sample code from wer i can build from it....
Like i know magnitude of a freq say lFnl=a+ib....wer a=Cos and b=Sin.... i understand a complex no is combination of cos and sin term.... now i want that 16 freq to be rectangular pulse and from the reading i did rect pulse has sinc term which is sinc=sin(x)/x (sorry if i'm wrong).....here no cos term is coming... so how will this magnitude lFnl=1 apply here??? or is it that cos here will be considered 0... i'm so confused.... Also how to choose sinc value such that its 'a' and 'b' values are generated appropriately that it adds upto to 1...
not only for sinc i need to generate different waveforms sets of F=[F0,F1,........Fn-1]..... so be it any sinc, cos, rectangular, sawtooth i need lFnl=1..... but pls can someone now give me a matlab eg with rect pulse.... and also when i use other waveforms wat part in the code am i supposed to change wer i change the pulse and still maintaining lFnl=1
mainly how can i generate this 16 freq set... should i take a time domain signal and take its fft so i get this 16 frequencies or can i directly generate F=[F0,F1......Fn-1].... even if i take a time domain signal i need to make its value such that wen i take its fft it results in complex values wer a^2+b^2=1....very urgent..... pls help
Like i know magnitude of a freq say lFnl=a+ib....wer a=Cos and b=Sin.... i understand a complex no is combination of cos and sin term.... now i want that 16 freq to be rectangular pulse and from the reading i did rect pulse has sinc term which is sinc=sin(x)/x (sorry if i'm wrong).....here no cos term is coming... so how will this magnitude lFnl=1 apply here??? or is it that cos here will be considered 0... i'm so confused.... Also how to choose sinc value such that its 'a' and 'b' values are generated appropriately that it adds upto to 1...
not only for sinc i need to generate different waveforms sets of F=[F0,F1,........Fn-1]..... so be it any sinc, cos, rectangular, sawtooth i need lFnl=1..... but pls can someone now give me a matlab eg with rect pulse.... and also when i use other waveforms wat part in the code am i supposed to change wer i change the pulse and still maintaining lFnl=1
mainly how can i generate this 16 freq set... should i take a time domain signal and take its fft so i get this 16 frequencies or can i directly generate F=[F0,F1......Fn-1].... even if i take a time domain signal i need to make its value such that wen i take its fft it results in complex values wer a^2+b^2=1....very urgent..... pls help
Last edited: