Answered
plz tell me wat's the reason for this error in matlab..
The input to imshow() should not be a string ei = imerode(gi,se); imshow(ei);

14 years ago | 0

| accepted

Answered
change interval for xtick label
Hi, you have to do the same thing for xticklabel set(gca,'Xtick',0:3:23) set(gca,'XtickLabel',time(1:3:end))

14 years ago | 3

| accepted

Answered
plz tell me wat's the reason for this error in matlab..
I think you should provide more information than this, like what specific MATLAB function call is throwing the error. The roo...

14 years ago | 0

Answered
Moving average.
That would be a 132 point moving average filter, which you can do with b = 1/132*ones(132,1); output = filter(b,1,inpu...

14 years ago | 0

| accepted

Answered
Intersection of two 7x2 matrix
[c,iY,iV] = intersect(Y,v,'rows'); gives you the rows of the matrix that intersect in c. Otherwise, what do you mean get t...

14 years ago | 0

Answered
Count/find/sum the number of statements to calculate percentage
You can always include a counter variable in the loop k = 0; % outside the loop, set k to 0 if (your real roots te...

14 years ago | 0

| accepted

Answered
Save Audio
Look at the help for: wavwrite.m and auwrite.m If you are going to work with the audio in MATLAB, you can just save it...

14 years ago | 0

| accepted

Answered
??? Subscript indices must either be real positive integers or logicals. Using findpeaks
[pks,locs] = findpeaks(test); pks test(locs) pks contains the peak values locs are the indices test(locs...

14 years ago | 0

Answered
Filter Design Basics
Are you saying you already know the filter coefficients? In H(z) = 1-z^{-1} you have a high pass filter and you can crea...

14 years ago | 0

| accepted

Answered
Working with even rows
x = randn(4,4); y = x(2:2:end,:); max(y,[],2) The above gives you maximums in rows 2 and 4. If you want the max...

14 years ago | 1

Answered
HOW CAN I CALCULATE THE SIGNAL TO NOISE RATIO(SNR) OF A CHIRP SIGNAL
You can increase the SNR by increasing the amplitude of the signal and by decreasing the variance of the noise. You have to reme...

14 years ago | 1

Answered
band pass filter a signal using FFT
With such a high sampling frequency and that many samples, why don't you downsample the signal using decimate()? Since you ar...

14 years ago | 0

| accepted

Answered
band pass filter a signal using FFT
d = fdesign.bandpass('Fst1,Fp1,Fp2,Fst2,Ast1,Ap,Ast2',75,100,150,175,50,0.5,50,1e3); Hd = design(d); y = filter(Hd,...

14 years ago | 0

Answered
band pass filter a signal using FFT
Have you considered fftfilt()? You can design your FIR filter using fdesign.bandpass and then use fftfilt().

14 years ago | 0

Answered
problem with a matlab code for discrete-time convolution
n= -25:25; x= cos(2*pi*n/.3).*(n>=0); h= (cos(pi*n/.3)+(sin(pi*n/3)/sqrt(3))).*(n>=0); y= conv(h,x); n1 = -25:length(y)...

14 years ago | 1

Answered
problem with a matlab code for discrete-time convolution
You have to realize the result of linearly convolving two input signals, h and x, is length(h)+length(x)-1 so you need a new ...

14 years ago | 0

Answered
Time-domain frequency filter
An example (requires Signal Processing Toolbox) d = fdesign.lowpass('Fp,Fst,Ap,Ast',3,4,0.5,50,10); Hd = design(d); outp...

14 years ago | 0

| accepted

Answered
Time-domain frequency filter
Sounds like you just need a lowpass filter since you want to only analyze data below 3 Hz. What is your sampling frequency? Y...

14 years ago | 0

Answered
embedded zerotree wavelet
wcompress in the Wavelet Toolbox has the option to use embedded zero tree compression with the 'ezw' input.

14 years ago | 0

Answered
A "discrete" contour plot
When you say "discrete" contour plot, do you mean something like z = abs(round(peaks(5))); bar3(z,0.3);

14 years ago | 0

Answered
please help me in this code how to over come from this error i will be posting my code
Some of your vectors have 34 elements and others have 35. If you want to concatenate them in a matrix, then please make them con...

14 years ago | 0

| accepted

Answered
PROBLEM IN GENERATING A REFERENCE SIGNAL
Well K = 5; X = randn(100,5); Will give you K=5 discrete-time real-valued stationary random vectors. If you want ...

14 years ago | 0

Answered
random number between -1 and 1
Do you want these uniform between -1 and 1? r = -1 + 2.*rand(100,1); For 1 such number r = -1+2*rand(1,1);

14 years ago | 3

| accepted

Answered
Overwrote "clear" function
Does clearvars works? clearvars X* %clear all variables starting with X

14 years ago | 0

Answered
fft
I think that is covered in just about any textbook. The DFT is computationally intensive to implement as a matrix-vector multipl...

14 years ago | 1

| accepted

Answered
z transform of a sequence
The vector you give has a finite number of terms so the Z transform is just 1+2z^{-1}+3z^{-2}+4z^{-3} unless the terms you...

14 years ago | 2

Answered
Transfer Function with Z Domain.
If you design an FIR filter in MATLAB, then you have the Z transform coefficients (the coefficients of the polynomial in z^{-1})...

14 years ago | 0

Answered
Find all non zero values in an array AND display the values
x = randi([0 4],1,1177); indices = find(x~=0); y = x(indices); Or x = randi([0 4],1,1177); y = no...

14 years ago | 0

Answered
Matrix
One way x = [1 -1; 1 -1]; y = [1 1; 1 -1]; Z= zeros(size(x)); Indx1 = find(x==1); Indy1 = find(y=...

14 years ago | 0

Answered
The problem of using rng to generate random numbers.
When you call rng, you can output that information and save it if you wish for nn = 1:10 scurr = rng; rngstate...

14 years ago | 0

Load more