Answered
How to implement a Bivariate Normal Density function when your mu is given in a column matrix
Just pass in |mu.'| instead, i.e., mvnpdf(x,mu.')

14 years ago | 0

Answered
function feval
It looks like your untitled2 is a script, not a function, hence cannot be evaluated by |feval|. To define a function, you need t...

14 years ago | 0

| accepted

Answered
Error using ==> horzcat CAT arguments dimensions are not consistent. Help please !
When x1=x2 but y1~=y2, your A1 is a scalar but A2 is a column vector, hence it cannot be concatenated. Similar thing for x1~=x2 ...

14 years ago | 1

| accepted

Answered
determinant of covariance matrix
What you have is rank-deficient so the determinant will be 0. If you just want the algorithm to work, you can try to do the diag...

14 years ago | 0

Answered
determinant of covariance matrix
Maybe your data matrix has correlated components so the resulting covariance matrix is not full rank?

14 years ago | 0

Answered
@ function handle help for finance
I don't quite see the relation of inputs. It looks like Alpha and Lag are constants and it has nothing to do with x, so what's t...

14 years ago | 0

Answered
How do I suppress answer in Matlab?
Just don't define output in the function definition line, or when you call the function, add semicolon at the end, i.e., fi...

14 years ago | 0

| accepted

Answered
Function to Vector
If I understand your question correctly, you need to do for i = 1:10 a(i) = crr(x(i)) end But you could try |arr...

14 years ago | 0

Answered
LPF a random signal
You need to first determine what are the frequencies you want to keep and what are the frequencies you want to filter out. You c...

14 years ago | 1

| accepted

Answered
how to add delay to a signal
If your |D| is an integer multiple of the sampling frequency, then all you need to do is adding 0 in front of the signal. Howeve...

14 years ago | 0

Answered
How to compute the fourier transform for a signal u(t) over frequency band [-10,10]?
Depending on your sampling rate and the number of points in your signal, you may want to also explore the following function ...

14 years ago | 0

Answered
Printing values to the command window
Use |fprintf| doc fprintf

14 years ago | 0

Answered
scale polar plot
You can plot the normalized G if all you care is the location. polar((1:360)*pi/180,G/max(G)) You should be careful usin...

14 years ago | 0

Answered
symbol rate
You need to know how many bits form one symbol.

14 years ago | 0

Answered
power of beamformed signals
What kind of signal you have? If you have a signal of WSS, you can probably use |var| directly. doc var

14 years ago | 0

| accepted

Answered
beampattern calculation for linear array.
Besides what cyclist mentioned, I think there are several other issues in your code: # 100 elements translates to 20dB, not 100...

14 years ago | 0

Answered
Help using lastwarn.m
You need to find out the corresponding id generated by |dostuff|. You can try to do this by first reset the warning state and th...

14 years ago | 1

Answered
Suppress Warning Messages
You can use warning('off','message_id') to turn off a specific warning. You can use |lastwarn| to find out the message_...

14 years ago | 2

| accepted

Answered
Finding the peak values of a graph
You should be able to use |findpeaks| to do this. doc findpeaks

14 years ago | 0

Answered
Multiple delays using cross correlation
Once you get the result of |xcorr|, you can use |findpeaks| to locate multiple peaks. [x,lag] = xcorr(r1,r2); [pks, locs...

14 years ago | 0

Answered
Directivity pattern for a beamformed signal
In many literature, beam pattern is a narrow band concept so it is related to the steering vector. Since you are using time doma...

14 years ago | 1

| accepted

Answered
Sliding window algorathim to find the covariance matrix and the received signal model in radar detection ?
You may want to take a look at |corrmtx|. doc corrmtx

14 years ago | 0

Answered
3D graph drawing
You can try |hold| surf(X,Y,Z); hold on; surf(X,W,V);

14 years ago | 1

Answered
I don't know, what I do wrong?:'(
You typed |slove| and it should be |solve|

14 years ago | 0

| accepted

Answered
LaTeX Interpreter and Blackboard bold (\mathbb{}) for text
If that is all you want to do, you can use the default tex interpreter. ylabel('\alpha in \bf{R}')

14 years ago | 0

| accepted

Answered
How many ways to determine signal frequency?
Hi Tim, Here is my opinion on this issue and I certainly could be wrong. I would say Fourier transform, cosine/sine trans...

14 years ago | 1

Answered
Quicky. re 'whos' and workspace.
You could try |evalin| doc evalin

14 years ago | 0

Answered
show partically blokced x-axis
Hi Hugh, This is because the axis mode is still 'Auto'. I would suggest you to do the following when adjusting the y axis ...

14 years ago | 0

Answered
How to rewrite a non-linear function so that f(x) = 0?
Isn't it just 3*cos(x)-x^2 and exp(x)-2*x If you have to, you can define function |f1(x)| for the left side an...

14 years ago | 0

Answered
beamforming a signal with random noise
Try the following code: t = (0:999)'/1000; s = sin(2*pi*t); ad = exp(-1i*pi*(0:7)*sin(30*pi/180)); x = s*ad; y ...

14 years ago | 1

| accepted

Load more