답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

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

12년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
LTE system design
<http://www.mathworks.com/products/lte-system/ LTE System Toolbox>

12년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 2

더 보기