Answered
3d-dwt
Please explain what you mean by: _"please help me because the one in matlab help is default code that always show the same re...

14 years ago | 0

Answered
seperate elements in cell array
I'm assuming each string above is one element of the cell array. To find the SLV and put them in a cell array. X = {'GLD|...

14 years ago | 0

| accepted

Answered
How to call m-file
How about a switch switch test case 'value1' mfile1() case 'value2' mfile2() otherwise mfile3() en...

14 years ago | 1

Answered
Error in using fir1() function
Why are you putting - signs on these: wp=-2*fp/f; ws=-2*fs/f; Take out the - signs.

14 years ago | 1

| accepted

Answered
FREAD() help
A = [50 32 52 32 54 32 56]; B = str2num(char(A));

14 years ago | 1

| accepted

Answered
Error While Using the butter() function for IIR Butterworth filter design
I don't see where you are using butter() at all in the code you have posted here. This is an FIR filter design. Did you copy and...

14 years ago | 1

| accepted

Answered
calculate the mean of several columns
One way is simply with a for loop A = randn(100,112); for nn = 0:15 B(:,nn+1) = mean(A(:,nn*7+1:(nn+1)*7),2);...

14 years ago | 4

| accepted

Answered
integer variable
Can you be more specific. You can do something like. A = int16(zeros(10,1)); but whether that is what you need depends....

14 years ago | 0

| accepted

Answered
designing fir bandpass filter using sptool
Hi Preeti, I would just launch FDATool directly, which is what sptool does when you select "New" under filters. >>fdatool ...

14 years ago | 0

Answered
Communications Toolbox Query - How to read .txt file with Binary Data?
Hi Nathan, You can easily read that data into the MATLAB workspace and then use the Signal form Workspace block. The Signal from...

14 years ago | 0

Answered
By element average of multiple matrices
Yes, concatenate the matrices into a 3-D array and use mean(x,3) x = randn(4,4,10); mean(x,3) and std(x,[],...

14 years ago | 1

| accepted

Answered
What are directional filter banks?
One way to implement a directionally-selective filter bank for video and images is using the dual-tree complex wavelet transform...

14 years ago | 0

Answered
How to get the number of samples of each bar in histogram?
Use the output arguments x = randn(1e3,1); N = hist(x,20); N gives you a vector of counts (frequencies) in each bin...

14 years ago | 0

Answered
Noises
Speckle noise is a multiplicative noise, where the images is multiplied element by element by a matrix of uniformly distributed ...

14 years ago | 1

| accepted

Answered
fouriertransformation on a picture using 1D DFT
Unless I'm missing something, if you have the DFT matrix, then multiply the image matrix by that DFT matrix, then take the trans...

14 years ago | 0

| accepted

Answered
How many positive entries in array
x = randn(1450,1); indices = find(x>0); length(indices) or count = length(nonzeros(x(x>0)));

14 years ago | 3

| accepted

Answered
MATLAB - fft, find where it occurs in original data
You have to match the index of the maximum in the modulus of the DFT (maximum absolute value in the fft() output) with the index...

14 years ago | 0

Answered
what is the unit of x axis in the wavelet toolbox?
This x axis has the same units as the input signal in time or space. However, if you are looking at the wavelet coefficients tha...

14 years ago | 0

Answered
problems in loop with findpeaks
Hi Maria, Because you cannot expect the number of peaks in the rows of A to be the same in each row, you can use a cell array to...

14 years ago | 0

| accepted

Answered
How to use multi-scale wavlet solve nonlinear ODEs
While wavelet methods are used more frequently in the solution of PDEs, there are number of sources you can find that show you h...

14 years ago | 0

Answered
How to design a FIR Filter
Yes, it is possible, but you will have to write a lot of code. The Signal Processing Toolbox (SPT) enables you to create these f...

14 years ago | 1

| accepted

Answered
fft window
You cannot choose it inside of fft(). What you do is multipy the data by the window before you use fft() x = randn(1e3,1);...

14 years ago | 1

Answered
how to calculate center frequency
centfrq determines the peak frequency in Fourier transform of the wavelet which is the center frequency, then for increasing sca...

14 years ago | 0

| accepted

Answered
figure
You mean like? r = 1; theta = 0:0.01:(2*pi); y = r.*exp(1j*theta); for nn = 1:length(theta) quiver(...

14 years ago | 0

| accepted

Answered
Finding zeros of an equation
Steven, In this case the roots are exactly the points you are looking for. Please convince yourself: C = [3 -12 -33 80]...

14 years ago | 0

Answered
Finding zeros of an equation
C = [3 -12 -33 80]; Pzeros = roots(C); Pzeros

14 years ago | 0

Answered
Matlab cell array question
I think you were correct when you replaced the string. A{1,2}='Leicester is a nice town'; A{1,2} = true is replacing .‘Lei...

14 years ago | 0

Answered
Matlab cell array question
# (3+1j*10)*3 is not the same as (3+1j*10)^3, so I'm not sure which one you mean when you wrote "(3+i*10)3" Maybe you just forg...

14 years ago | 0

Answered
Normalizing a histogram
I'm saying that if you fit a gamma, you get an alpha and a beta parameter. You can use that to see if a chi-square is appropriat...

14 years ago | 0

Answered
Normalizing a histogram
yes, you are doing the correct thing. You can use dfittool to fit a Gamma distribution, which you can use estimate the paramete...

14 years ago | 0

Load more