Answered
PWELCH vs PSD
Hi Kevin, The result of |psd| is not correctly scaled, therefore you should use |pwelch|. For spectral density, the result shou...

14 years ago | 4

| accepted

Answered
How to change the axis properties of a graph?
Hi, You can do set(gca) to see all properties of an axis. To modify either one of them, you can do set(gca,'Nam...

14 years ago | 0

| accepted

Answered
Pole Zero plot is giving wrong plot
If you look at the ticks of the real axes, you can see that the scale is 10e-16. So practically it is on the imaginary axis. If ...

14 years ago | 0

Answered
Detect New File in a Directory
Hi lynniz, You can use |dir| to list all the files under a certain directory, cache it and constantly query the folder and us...

14 years ago | 0

| accepted

Answered
ifft
Let's assume that the signal is x. So what you could do is Xf = fft(x); Xf_mag = abs(Xf); Xf_phase = angle(Xf); % do wh...

14 years ago | 1

| accepted

Answered
Stuck with DTMF code
You can pass in an array like function dtmfdial(x,fs) and then inside your function, use a |for| loop to work on each ...

14 years ago | 0

| accepted

Answered
Getting error of Double
Is your |dtmfdial| on path? You can also try rehash toolbox to regenerate the path. HTH

14 years ago | 0

Answered
Store Values from a Power Spectrum graph to an array
Hi RMIT, let's say you have the frequency in |f| and the corresponding spectrum in |P|. Then you should be able to do what yo...

14 years ago | 0

| accepted

Answered
Lines that would be executed even if an error occur or if the script is aborted
Hi Camil, You can use |try..catch|. For example try foo() catch fclose(vu); delete(vu); clear vu;...

14 years ago | 1

| accepted

Answered
plus-minus function surf graph
Hi Sean, If you just want to plot, you should do figure; surf(X,Y,Z); hold on; surf(X,-Y,Z); HTH

14 years ago | 0

| accepted

Answered
plus-minus function
Hi Sean, You can do something like Y=B/2*(1-(4*X.^2)/L^2)*(1-Z.^2/D^2); Y = [Y -Y]; HTH

14 years ago | 1

| accepted

Answered
Centering a histogram around the median
Hi Amina, You can specify the bin location in |hist| function, for example x = rand(1024,1); sigmax = std(x); mx = mean(...

14 years ago | 1

Answered
Sum of matrices obtained as sum of vector products
Hi Ana, Let's say your matrix is X. If I understand correctly, each row of X is a vector you want and that vector suppose to ...

14 years ago | 1

| accepted

Answered
Matlab matched filtering help
Hi vsee Here is an earlier post regarding matched filter http://www.mathworks.com/matlabcentral/answers/4502-matched-filte...

14 years ago | 0

Answered
How to create a test bench waveform for the working of band pass and low pass filter
Hi Vivek, What is the purpose of the test bench? If you purpose is to look at the filter response, then in my opinion it is bet...

14 years ago | 0

| accepted

Answered
What are the steps for making a 'fft filter'?
Hi Kay, You need to first design the filter to get coefficient |b| and then pass it into the |fftfilt|. For example, assume you...

14 years ago | 0

Answered
How to design a filter with a given transfer function
Hi Evgeni, I guess I misunderstood your question. If you already know your zeros and poles, then you already have the coefficie...

14 years ago | 0

| accepted

Answered
vectorize this operation - help
Hi Leor, You may be able to use |arrayfun| to do this. >> doc arrayfun HTH

14 years ago | 0

Answered
How to design a filter with a given transfer function
Hi Evgeni, First of all, you will need to describe your response based on your frequency resposne curve. It looks like you kn...

14 years ago | 0

Answered
Paramerer setting for pmtm() multitaper method
Hi Kyle, The time-bandwidth product, |nw|, gives you a trade-off of the variance and resolution. When it gets larger, more wi...

14 years ago | 0

Answered
rempet
An alternative approach is to use left-multiply to achieve row manipulation. In your case, if you want to move your first row to...

14 years ago | 0

Answered
ismember input - strings vs numbers
Hi Matthieu, I think |ismember(A,B)| requires |A| and |B| to be the same data type. One possible solution is to use |num2str|...

14 years ago | 0

Answered
ismember input - strings vs numbers
Hi Matthieu, Are the criterion pre-defined? If so, how about concatenating them with logical operator, e.g., ismember((...

14 years ago | 0

Answered
How can i import a signal in simulink
Hi Nima, There is a From Workspace block that you can use to import the signal from work space to Simulink, see http://www...

14 years ago | 0

Answered
How to design a digital IIR to match the frequency resp of a measured analog filter
Hi Alfredo, If you have access to Signal Processing Toolbox, you could try to use one of |fdesign.arbmag|. You an also try |f...

14 years ago | 0

| accepted

Answered
find peaks
Hi Mohammad, Can you explain why you cannot use |findpeaks|? I think you can specify MinPeakHeight to avoid false alarm from ...

14 years ago | 1

Answered
How to add the new delayed signal to the PLOT !
Hi Susan, Let's say I have two signals |x| and |y|. To make it simple, let's say x = [1 1 1 1 1 ] so if |y| is the sa...

14 years ago | 1

Answered
How to add the new delayed signal to the PLOT !
Hi Susan, |X+delay| does not delay the signal, it merely adds an offset of |delay|'s value to X. To delay a signal, you need ...

14 years ago | 1

Answered
how to plot geometric figures?
You can just give the coordinates for each vertex, e.g., for square plot([0 1 1 0 0],[0 0 1 1 0]) If you don't want the ...

14 years ago | 0

Answered
FINDING DETERMINANT OF MATRIX AFTER TAKING COVARIANCE
As Oleg mentioned, I think this is a precision thing. I'm curious what is the original number you put in as |x|. Based on the nu...

14 years ago | 0

Load more