Respondida
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);

más de 14 años hace | 0

| aceptada

Respondida
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))

más de 14 años hace | 3

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
??? 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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 1

Respondida
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...

más de 14 años hace | 1

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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,...

más de 14 años hace | 0

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

más de 14 años hace | 0

Respondida
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)...

más de 14 años hace | 1

Respondida
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 ...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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 ...

más de 14 años hace | 0

Respondida
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);

más de 14 años hace | 3

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

Respondida
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...

más de 14 años hace | 2

Respondida
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})...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

Cargar más