Answered
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 years ago | 0

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

12 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 4

Answered
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 years ago | 0

Answered
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 years ago | 5

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

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

12 years ago | 13

| accepted

Load more