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

12 years ago | 0

| accepted

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

12 years ago | 0

Answered
Logging of warnings possible?
Read this blog: <http://undocumentedmatlab.com/blog/trapping-warnings-efficiently/ Trapping warnings efficiently> You can ...

12 years ago | 0

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

12 years ago | 1

| accepted

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

12 years ago | 0

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

12 years ago | 0

| accepted

Answered
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: ...

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

Answered
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

12 years ago | 0

| accepted

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

12 years ago | 1

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 1

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

12 years ago | 0

Answered
LTE system design
<http://www.mathworks.com/products/lte-system/ LTE System Toolbox>

12 years ago | 0

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

12 years ago | 1

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

12 years ago | 0

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

12 years ago | 1

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 1

| accepted

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

12 years ago | 2

Load more