답변 있음
i copied it from the book i know the error is in the omega definition(line 12) but i dont know how to solve it please help
I'm assuming that you are missing brackets around the vector in omega distance=15; beta2 = 1; delta2=1; N=1; mshape=inp...

12년 초과 전 | 0

답변 있음
Undefined function or variable
What do you expect these comparisons to yield: if (R == G) & (R == B) H = 0; elseif (R >= G) & (R >=...

12년 초과 전 | 0

답변 있음
Problem with a high pass filter
Please specify what you mean by "...I have imported everything to my source code but it doesn't work yet" What error message ...

12년 초과 전 | 0

답변 있음
how do i put iteration values into a vector?
I'm not sure from your post, which values you want to retain over the life of the while loop, I'm assuming xnew I would set t...

12년 초과 전 | 0

| 수락됨

답변 있음
how to draw two graphs on same figure in matlab
Have you tried simply hold on; x = randn(100,1); y = randn(100,1); plot(x); hold on; plot(y,'r'); Or simply: p...

12년 초과 전 | 0

답변 있음
Taking derivative of a time based function?
Are you trying to differentiate symbolically or numerically? T = 8; n = 1; t = 0:0.1:100; y = ((t/T).^n).*exp(-t/T); ...

12년 초과 전 | 0

답변 있음
Instead of using the threshold to select coefficients in the Fourier domain, you could also use a low-pass filter. can some one explain which would be better?
I think using a lowpass filter is better in most cases than just zeroing out coefficients in the Fourier transform. A lowpass...

12년 초과 전 | 0

| 수락됨

답변 있음
How to know your numeric (scalar) value which indicates how well your filtering worked (by comparing your result to y_original)?
you can compute the squared error norm(y-y_original,2) or the variants thereof like mean squared error or root mean square...

12년 초과 전 | 0

| 수락됨

답변 있음
Suppose i have points ( 0.9, 79, 76,23, 1, 3, 4.3,89), what is the slope of the line formed by this points
You have not told us what the "x"-values are. If we assume that they are y = [0.9, 79, 76,23, 1, 3, 4.3,89]; x = 1:length(...

12년 초과 전 | 0

답변 있음
MATLAB Data from loop not saved
You can't have a for loop where the index is non-integers, like this B = logspace(0,2,100); because the 2nd element of B ...

12년 초과 전 | 0

답변 있음
how to plot the signal maintained in frequency domain in 3d i tried but as you can see its not what i want :(
"ok let me ask y ou something different if i want the values of the frequency obtained due to fft but i only have the given as s...

12년 초과 전 | 0

답변 있음
Bandpass filter with FDA tool
Hi Stefan, yes I'll assume that you downsampled to 50 Hz (using an anti-aliasing filter) d = fdesign.bandpass('Fst1,Fp1,Fp2,...

12년 초과 전 | 0

| 수락됨

답변 있음
how find integration area under the curve ?
I'm assuming that b=x_0 and a=x_3 -- is that correct? If that is correct, it looks like your expression above significantly ove...

12년 초과 전 | 0

답변 있음
Script for t-test
If you have the Statistics Toolbox, use ttest or ttest2. So you should say whether you have the Statistics Toolbox and then whet...

12년 초과 전 | 0

답변 있음
How to get only linearly independent rows in a matrix or to remove linear dependency b/w rows in a matrix?
A = [1,1,1;1,2,3;4,4,4]; [R,basiccol] = rref(A); B = A(:,basiccol); The columns of B are a basis for the ra...

12년 초과 전 | 4

답변 있음
Can heart sounds and ecg be simultaneously recorded and downloaded onto matlab
The answer is yes, depending on whether you can interface the hardware with MATLAB. In a former life, I used to record ECG and E...

12년 초과 전 | 0

답변 있음
How to convert a matrix of double to int?
I'm not sure what you are saying. Do you mean that: X = 10+randn(16,16); X = uint8(X); Does not result in ...

12년 초과 전 | 5

| 수락됨

답변 있음
Has anyone worked on LTE-A physical layer using simulink or matlab?
I'm certainly not a LTE expert so I'm not sure which release constitutes LTE Advanced in your mind, but <http://www.mathworks...

12년 초과 전 | 0

| 수락됨

답변 있음
find non zero elements put in a matrix
A = randi([-2 2],20,10); idx = find(A~=0); B = A(idx); B contains all the nonzero elements of A, but how will...

12년 초과 전 | 0

답변 있음
How I calculate the chi-square coefficient on a contingency table?
Do you have the Statistics Toolbox? If so, then use crosstab() that will produce a contingency table and optionally output a chi...

12년 초과 전 | 0

답변 있음
Copy things from the documentation
Tobias, It looks like you are encountering this bug from your screen shot: <http://www.mathworks.com/support/bugreports/98985...

12년 초과 전 | 0

답변 있음
How do I test for correlation between digital data series?
xcorr() is in the Signal Processing Toolbox. You can calculate the cross correlation in the frequency domain and then invert. ...

12년 초과 전 | 0

| 수락됨

답변 있음
Why can't I find the design example the demo_fird.mdl, demo_fir_rrc.mdl?
Wherever you are getting the models from, you have to save them in a folder on the MATLAB path. Use >>pathtool to add ...

12년 초과 전 | 0

답변 있음
How can I implement a simple difference equation and plot the resulting output, all using MATLAB
Please look at the help for rand x = -1+ 2*rand(100,1); B = [b0 b1 b2 b3 .... bM]; A = [1 a1/a0 a2/a0 ... ]; y = filte...

12년 초과 전 | 0

답변 있음
Bandpass filter with FDA tool
d = fdesign.bandpass('Fst1,Fp1,Fp2,Fst2,Ast1,Ap,Ast2',0.5,1,3,4,80,0.5,80,2000); Hd = design(d,'butter'); but that reall...

12년 초과 전 | 0

답변 있음
How can I implement a simple difference equation and plot the resulting output, all using MATLAB
You have not said what x(n) is, is it a white noise input. Is it the Kronecker delta sequence. If we don't know that x(n) is ...

12년 초과 전 | 0

답변 있음
issue in matrix multiplication
G=[1 1 1 1 1 0 0 0 1 0 0 0; 0 0 1 1 0 0 0 1 0 1 0 0; 1 1 1 0 1 0 0 1 0 0 1 0; 1 0 0 1 1 1 0 1 0 0 0 1]; m=[1 0 1 0]; ...

12년 초과 전 | 0

답변 있음
array made of an infinite number of elements
Do you have the Symbolic Toolbox, if so you can determine limits syms x limit(sin(x)/x) to find the limit at a particu...

12년 초과 전 | 0

답변 있음
How do I test for correlation between digital data series?
The best way is to compute the cross correlation sequence. The reason you want to do that is with time series data, you want ...

12년 초과 전 | 0

답변 있음
add a new field to structure
teststruct = struct('names',{'bob','dave','sara'}); % now add field called data [teststruct(:).data] = deal(randn(3,1)); ...

12년 초과 전 | 13

| 수락됨

더 보기