Forums More matlab
how to design LPF given i/p signal its sampling freq, reqiured o/p, in MATLAB
inHai everyone, I have an i/p signal x = 1 +0.5* sin(pi*t) where t = [0:0.01:5], basically a signal sampled at 100 Hz. I need to filter out the...
Hai everyone, I have an i/p signal x = 1 +0.5* sin(pi*t) where t = [0:0.01:5], basically a signal sampled at 100 Hz. I need to filter out the d.c. component i.e. get 1 as a constant output so for which I have to design a low pass filter. can any one tel me how to design low pass filter in MATLAB Thank you
phase spectrum
inHi every body, ? I want too plot phase spectrum of a signal. I've used this code: ? X=fftshift(fft(signal)); phi=unwrap(angle(X)); ? But...
Hi every body, ? I want too plot phase spectrum of a signal. I've used this code: ? X=fftshift(fft(signal)); phi=unwrap(angle(X)); ? But it doesn't work. Although the similar code for amplitude is correct: ? X=fftshift(fft(in)); amp=(abs(X)/2)/max(abs(X)/2); ? ? Can anybody help me? Regards; Rosita
LS code sequence
Hi All I need your help to design a LS code generator. I have matlab file but i cant simulate that file. can u help me in this? function...
Hi All I need your help to design a LS code generator. I have matlab file but i cant simulate that file. can u help me in this? function [codeset] = LScode2(stage) n = stage-2; % the number of stage for iteration N_z = 2^n-1; % the number of zeros % the purpose of zero insertion is to make Interference Free Window. ...
soft input viterbi decoding
I have a question using soft input vitdec command in matlab. In the example provided by "help" we need to quantize the input like: [x,qcode]...
I have a question using soft input vitdec command in matlab. In the example provided by "help" we need to quantize the input like: [x,qcode] = quantiz(1-2*ncode,[-.75 -.5 -.25 0 .25 .5 .75],... [7 6 5 4 3 2 1 0]); % Values in qcode are between 0 and 2^3-1. decoded3 = vitdec(qcode',trel,tblen,'cont','soft',3); my question is how to choose the interval? (in this example it is [-.75 -.5 -...
frequency domain conversion
infunction L=laser() %T=n*pi/2w where w= omega w=2*pi*1.93*10^14; phi= 0:360; T=45; %I have plotted the graph between phi and L but i want to plot...
function L=laser() %T=n*pi/2w where w= omega w=2*pi*1.93*10^14; phi= 0:360; T=45; %I have plotted the graph between phi and L but i want to plot it between %amplitude and time %L= (-cos(phi)*w*sin(w*T)*exp(-j*w*T))+(w*cos(phi))-(sin(phi)*{(w*cos(w*T)*exp(-j*w*T)-w+ (w^2)*sin(w*T)*exp(-j*w*T))/(1+w^2)}); L= (-cos(phi)*w*sin(w*T)*exp(-j*w*T))+(w*cos(phi))-sin(phi)*(w*cos(w*T)*exp(-j*w*T)-w+ (w^2)*s...
reading 100 text files using recursion?
inI have 100 text files,namely,file000.txt, file001.txt ,....,file099; total of 19 text files. What I would like to do is to read these 100 files...
I have 100 text files,namely,file000.txt, file001.txt ,....,file099; total of 19 text files. What I would like to do is to read these 100 files using textscan function of MATLAB into matrices like f(:,1),f(:,2),....,f(:,99). Can anybody help me figure out how can I do this without having writing textscan 100 times? Thank you very much for any help you may provide. Sincerely, S
how to change matlab to C?
inHi, do you know how can I change the matlab codes to C (automatically)? bests rahele
Hi, do you know how can I change the matlab codes to C (automatically)? bests rahele
give an .xls file address and read it in matlab
inHi; I have a data.xls file I want to ask user and then write location of this file (like d:\data.xls) as input. i wrote such a code and it...
Hi; I have a data.xls file I want to ask user and then write location of this file (like d:\data.xls) as input. i wrote such a code and it doesn't work. disp('Where the matrix is ....') num_mat =xlsread(input('Where is data.xls file?')); num_max=max(max(num_mat)) % matrisin maksimum de?erini bul temp_val=(100/num_max)*(num_mat); % s?cakl?k de?erleri temp_max=max(max(
Transfer element of one matrix to another matrix
inHi; I am a new member of this group. I hope i will benefit from information here. I have a matrix which has 320x256 dimensions. i want to scan...
Hi; I am a new member of this group. I hope i will benefit from information here. I have a matrix which has 320x256 dimensions. i want to scan this matrix and transfer elements that have value bigger than 80 to another matrix. ? wrote a small script as follow but i doesn't work regularly. Could you please help me to solve this problem. Many thanks... matrix_sz=size(temp_val) %matri
SIGNAL TO NOISE RATIO
inHi All, I have a set of noise data , x= [1 2 3 4 5 6 ]. I want to add additive white Gaussian noise to it using g= x+ 0.5*...
Hi All, I have a set of noise data , x= [1 2 3 4 5 6 ]. I want to add additive white Gaussian noise to it using g= x+ 0.5* rand(1,6) How do i calculate the signal to noise ratio of this signal if the variance of the rand is 0.5. I know the relationship between SNR and variance, mathematicallly and can implement that in MATLAB. Is there any function that can calculate that easily ...
Ask a Question to the DSPRelated community
To significantly increase your chances of receiving answers, please make sure to:
- Use a meaningful title
- Express your question clearly and well
- Do not use this forum to promote your product, service or business
- Write in clear, grammatical, correctly-spelled language
- Do not post content that violates a copyright