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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

Respondida
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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 1

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 1

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

más de 12 años hace | 0

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 2

Cargar más