Answered
correlation
A=[1.1,10.3,2.3,3.4,55.3,6.1,9.2]; B=[1.0,2.0,3.0,4.0,5.0,6.0,7.0]; [R,P] = corrcoef(A,B); R(1,2) If you want...

14 years ago | 1

Answered
iid
Can't you do: A = randn(10,10); Q = orth(A'); or even Q = qr(A');

14 years ago | 0

| accepted

Answered
??? Undefined function or method 'dsip' for input arguments of type 'double'.
Did you mean disp()? For your other error: You have l(k)=l(k)*((x-x(n))/(x(k)-x(n))); But x is not a scalar. Y...

14 years ago | 0

Answered
Extraction of Duty Ratio of a PWM in matlab
In R2012a in the Signal Processing Toolbox, there is a new function dutycycle.

14 years ago | 0

| accepted

Answered
How to apply hsize of 3x3 square matrix into gaussian filter ?
Why are you trying to do that? fspecial() gives you the Gaussian filter, then you use that to filter your matrix. H = fspe...

14 years ago | 1

Answered
Median Frequency(Fmed)
Hi Shenal, you can do the following: t = 0:0.001:1-0.001; x = cos(2*pi*50*t-pi/4)+0.5*sin(2*pi*100*t)+randn(size(t));...

14 years ago | 0

| accepted

Answered
MATLAB Programers for hire
MathWorks does offer consulting services: < http://www.mathworks.com/services/consulting/>

14 years ago | 3

Answered
Assigning time on x axis for audio samples
You can create a time vector for your longest recording and then use subsets for a particular vector. If N is the length of t...

14 years ago | 2

Answered
An error at modulation process
You must not be executing this line sound = sound(:,1); sound must be 118784x1, NOT 118784x2 clear everything in your w...

14 years ago | 0

| accepted

Answered
An error at modulation process
You have a two-channel recording, do this: [sound,fs]=wavread('sesdeneme.wav'); sound = sound(:,1); fn1 = [10/(7000), ...

14 years ago | 1

Answered
An error at modulation process
You must not have a version with iscolumn(). That's fine, you don't need that, I just put that in in case the output of filter()...

14 years ago | 0

Answered
Z-transform of time domain data
If you have a finite-length vector which is the impulse response of a discrete time system, then you have an FIR filter. The val...

14 years ago | 0

Answered
how to make a redundant dictionary with different wavelets?
If you have R2012a, you can do that with Matching Pursuit. See the help for wmpdictionary.m

14 years ago | 0

Answered
how to calculate frequency from the wavelet toolbox?
If you know the scale you are visualizing you can make a correspondence using scal2frq() has I have said.

14 years ago | 0

Answered
Error in dolphchebyshev array
Where is the function planar_dolphcheby defined? You must have an M-file called planar_dolphcheby.m somewhere on your path th...

14 years ago | 0

Answered
Switch
No, a complex number is 1x1 in MATLAB, not 2x1 Can you provide an example of where your switch fails? z = 1+1j; swi...

14 years ago | 0

| accepted

Answered
z power 1 filter in matlab
Do you have the Wavelet Toolbox? If so you can implement a lifting scheme where the Laurent polynomial has positive powers of z ...

14 years ago | 0

Answered
An error at modulation process
[sound,fs]=wavread('sesdeneme.wav'); fn1 = [10/(7000), 700/(7000)]; [b1,a1] = butter(10, fn1, 'bandpass'); y1=filter(b1,...

14 years ago | 0

Answered
finding skewness, kurtosis
Why do you have this line in your function: sprintf('%d', '%d', '%d', '%d', avg, rms, sk, ku); First of all those valu...

14 years ago | 0

Answered
how to calculate frequency from the wavelet toolbox?
You can use scal2frq to return the pseudo-frequencies corresponding to particular scales. For example: t = linspace(0,5...

14 years ago | 0

Answered
HI , I WANT TO USE "IF" AND ELSE CONDITIONS IN MATLAB USERDEFINED FUNCTION ?PLZ HELP ME
Have you just read the MATLAB getting started guide, or the help for if? I think you don't need a book on that alone. x = 3...

14 years ago | 0

Answered
How do you fit a gamma distribution?
You can use either mle() with the 'Distribution','gamma' gamfit() or fitdist() with 'gamma'. All require the Statistics To...

14 years ago | 0

Answered
Plotting error message
You have the line: l=1+y2*10; and then you try to use that to index the columns of t(), but you actually have an index no...

14 years ago | 0

| accepted

Answered
i need code for the following topic... 1.MATLAB code for a steganographic method based on integer wavelet transform and genetic algorithm
You can implement an integer-to-integer wavelet transform using the Wavelet Toolbox and a lifting transform. You will need to...

14 years ago | 0

Answered
MATLAB - fft, find where it occurs in original data
Hi Marius the DFT has no time localization because you sum over all time. Based on the output of fft(), you cannot determine whe...

14 years ago | 0

Answered
Reconstruct the signal using wavelet
Are you sure you are getting tmp from tmp = cumsum(L); That output cannot be a non-integer, please show me your code and g...

14 years ago | 1

| accepted

Answered
FFT
Hi Sumit: Fs = 1e3; t = 0:0.001:1-0.001; x = 2*exp(1j*(2*pi*100*t-pi/4))+1.5*exp(1j*(2*pi*200*t+pi/8)); xdft =...

14 years ago | 0

Answered
Reconstruct the signal using wavelet
You are using the incorrect input to waverec. waverec expects that the input is the wavelet and scaling coefficients. However yo...

14 years ago | 0

Answered
subdivision of samples to calculate RMS
You can create a matrix where you take every 100 consecutive samples of your waveform and use those as the columns of the matrix...

14 years ago | 0

| accepted

Answered
Plotting X-X and Y-Y (a cross on a point)
x1 = 3; y1 = 5; c1 = 2; c2 = 4; c3 = 4; c4 = 6; plot(x1,y1,'ob') hold on axis([0 7 0 7]...

14 years ago | 0

| accepted

Load more