Réponse apportée
Plotting a Spectrogram with data from a csv file
Array = csvread('trial3.csv'); dt = mean(diff(Array(:,1)));% sampling period Fs = 1/dt; [S,F,T,P] = spectrogram(Array...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Plotting a Spectrogram with data from a csv file
I don't see the attachment. You have to obtain the spectrogram on a 1-D signal, not a matrix. So is col2 your data? What ...

environ 12 ans il y a | 0

Réponse apportée
Logging of warnings possible?
Read this blog: <http://undocumentedmatlab.com/blog/trapping-warnings-efficiently/ Trapping warnings efficiently> You can ...

environ 12 ans il y a | 0

Réponse apportée
Linear Regression and Curve Fitting
Fs = 1000; t = 0:1/Fs:1-1/Fs; y = 1.5*cos(2*pi*100*t)+0.5*sin(2*pi*100*t)+randn(size(t)); y = y(:); X = ones(lengt...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
resample gives dimension error
Let's look at all the functions called by your code. Execute the following: profile on -history fs1 = 10; t1 = 0:1/fs1...

environ 12 ans il y a | 0

Réponse apportée
i have an excel file row=10,column=3, I want to show a text message if any of the column is zero
Will a column either contain all zeros or not? In other words is it possible to have some zeros in a column, but not all zeros? ...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
resample gives dimension error
I'm not sure if you have a non-MathWorks' (modified) version of firls(), but the code you entered above should work: ...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
How to use function Hd I have created in Filter Design and Analysis Tool (FDATool)
You create the function as Honglei has suggested (don't call it filter as he correctly suggested) Then as long as you place t...

environ 12 ans il y a | 0

Réponse apportée
suggestions for highpass filter design in Matlab
Yes, that looks fine as long as you realize that you have essentially an allpass filter since you are such a low stopband freque...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Impulse and step response
B = [1/2 -3/2 2 -1]; [h,t] = impz(B,1); [u,t] = stepz(B,1); This is an FIR filter so the impulse response is jus...

environ 12 ans il y a | 0

Réponse apportée
Storing results from a for loop
k = 1; for x=1:4; for y=1:4; f(k)=2*x+y-1; k = k+1; end end Now look at f

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Replicating values a certain number of times
There are a number of ways to do this. One way use a constant interpolator: x = 0:9; h = ones(4,1); xnew = zeros(40,1...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
FFT question (signal processing)
You can't just remove the "positive" frequencies in the DFT. If you have a real-valued signal, you get energy at two complex exp...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
how to randomly generate an alphabet within a given range ?
Do you want capital or lower case letters? You can just use the ascii representations char(97:106) or char(65:74) ...

plus de 12 ans il y a | 1

Réponse apportée
Errors when defining 'X' variable in ARIMAX specification in matlab
What version of MATLAB are you using? That optional input was added in R2013a. If you are using R2013a or newer, please tell ...

plus de 12 ans il y a | 0

Réponse apportée
LTE system design
<http://www.mathworks.com/products/lte-system/ LTE System Toolbox>

plus de 12 ans il y a | 0

Réponse apportée
Taylar window(Kaiser) ,hamming,hanning window?
Yes, after you window the data, you can obtain the DFT of the signals and then take the modulus squared for the magnitude-square...

plus de 12 ans il y a | 1

Réponse apportée
How to restore overloaded doc function?
I share Jan's puzzle as well, I would have expected a message like: "Error: "doc" was previously used as a variable, conflict...

plus de 12 ans il y a | 0

Réponse apportée
Taylar window(Kaiser) ,hamming,hanning window?
Assume x is your signal x = randn(32,1); x = x.*hamming(length(x)); The differences in the windows are larg...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
I want to safe a vector in one single matrix spot
You cannot put a vector in the location of a single element in a matrix. You can create a cell array and put a vector in an elem...

plus de 12 ans il y a | 0

Réponse apportée
How can I sum the rows of a matrix at a fixed distance between each other?
A = reshape(A,4,3); sum(A,2)

plus de 12 ans il y a | 0

Réponse apportée
FIR filter windowing methods
Can you be more specific? Are you talking about designing an FIR filter using the window method or applying a window to FIR filt...

plus de 12 ans il y a | 0

Réponse apportée
I wrote a code to design a lowpass filter and to filter an input signal with this filter; but Matlab gave an error. I could not understand my error. How can I correct this error?
It's always best to show the error that you get: "MATLAB gave an error" is not helpful. Assuming that sr is your signal, the ...

plus de 12 ans il y a | 0

Réponse apportée
how to find an alternative of 'dsp.SpectrumAnalyzer' in previous versions of matlab
No, the SpectrumAnalyzer System object was introduced in R2012b. If you want streaming spectral analysis capability in MATLAB, y...

plus de 12 ans il y a | 0

Réponse apportée
passing cell array to function
Have you saved the function in a folder that is on the MATLAB path? MATLAB needs to know how to find the function. Use ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Why can't I plot a graph?
Why do you need to plot this symbolically: x = -2:0.01:2; % or whatever the range y = x.^2 + 4*x + 4; plot(x,...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to use the index of a matrix in another one?
You are missing something in your description, summing the first two columns of y does not result in y_new. How did you get a th...

plus de 12 ans il y a | 0

Réponse apportée
How to detect a phone number from dtmf wav file?
Please see this example: <http://www.mathworks.com/help/signal/examples/dft-estimation-with-the-goertzel-algorithm.html DTMF ...

plus de 12 ans il y a | 0

Réponse apportée
is anyone know, how to know the matrix coordinate..?
a = [1 1 0; 0 0 0; 0 0 1;]; idx = find(a==1); % linear coordinates [I,J] = ind2sub(size(a),idx); The I,J pairs are t...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Error in convolution and i need someone to help me .
I'm assuming you want this: x(t>=0 & t<=5)=exp(-t(t>=0 & t<=5)); h(t>=0 & t<=5) = exp(-2*t(t>=0 & t<=5)); Your mist...

plus de 12 ans il y a | 2

Charger plus