Réponse apportée
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);

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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))

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
??? 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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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,...

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

Réponse apportée
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)...

plus de 14 ans il y a | 1

Réponse apportée
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 ...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
embedded zerotree wavelet
wcompress in the Wavelet Toolbox has the option to use embedded zero tree compression with the 'ezw' input.

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 14 ans il y a | 0

Réponse apportée
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);

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
Overwrote "clear" function
Does clearvars works? clearvars X* %clear all variables starting with X

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 2

Réponse apportée
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})...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
Matrix
One way x = [1 -1; 1 -1]; y = [1 1; 1 -1]; Z= zeros(size(x)); Indx1 = find(x==1); Indy1 = find(y=...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Charger plus