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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

Beantwortet
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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 2

Mehr laden