Answered
Forming a block diagonal matrix of one certain matrix?
eval(sprintf('Out = blkdiag(A%s);',repmat(',A',1,99))) HTH

9 years ago | 0

Answered
plotting sinuos curve using matlab
looks like it should be polarplot(phi,r) instead of polarplot(r,phi) HTH

9 years ago | 0

Answered
Envelope(signal,np,'peak') error in Matlab R2015b
Do you have another |envelope| function on your path? What does which envelope return? If it does not point to the one u...

9 years ago | 0

Answered
Matrix with binomial permutation
dec2bin(0:2^K-1)-'0'+1 HTH

9 years ago | 2

| accepted

Answered
simpler way to make new matlab function compatible to early version
I believe in a function, MATLAB does some static analysis so it sees flip first as a variable, even though it represents an anon...

10 years ago | 0

Answered
matlab code to generate frequency signal with RF values
I'm not sure what you mean but you can generate a 3000 Hz signal like below f = 3000; N = 1000; % number of samples in ...

10 years ago | 0

Answered
Undefined function or variable 'aviread'. >> aviread('traffic.avi'); Undefined function or variable 'aviread'.
|aviread| is not part of MATLAB installation provided by MathWorks. You can find it in File Exchange. However, if your goal is t...

10 years ago | 1

Answered
how to get only the important bandwidth of a sound
You may want to look into either |powerbw| or |obw| instead <https://www.mathworks.com/help/signal/ref/obw.html> <https://...

10 years ago | 1

| accepted

Answered
Question about utilizing FFT, convolution and LTI systems
The FFT corresponds to the circular convolution rather than the linear convolution. I would do the following N = numel(o_t)...

10 years ago | 0

| accepted

Answered
array average every 30 values
squeeze(mean(reshape(A,30,48,31))) Assuming |A| is the matrix HTH

10 years ago | 0

| accepted

Answered
Is it possible to perform acoustic beamforming with a 2 microphone ULA for real world speech ?
I'm not an expert on microphone arrays but here is how I look at it. The performance of a beamforming algorithm depends on th...

10 years ago | 0

Answered
How can I calculate total harmonic distortion using fft?
There is actually a function for computing THD, maybe you can give that a try? <https://www.mathworks.com/help/signal/ref/thd...

10 years ago | 1

Answered
Instantiations of custom classes *sometimes* unique, sometimes not. Bug?
If you look at the following reference page https://www.mathworks.com/help/matlab/matlab_oop/specifying-properties.html in...

10 years ago | 3

Answered
Why do I get different answer between circular shifting and modulation for FFT?
You are shifting the signal by 62 samples, not 2 samples, so you should define your |modulate| as modulate = exp(-j*2*pi*k*...

10 years ago | 1

Answered
Two variable function computation
You may want to check out |waterfall| <https://www.mathworks.com/help/matlab/ref/waterfall.html> HTH

10 years ago | 0

Answered
How to put different arrays in one big array?
You need to either pad them into same size or you can use cell array AllArray = {AA, BB, CC} HTH

10 years ago | 1

Answered
Difference in MATLAB function evaluation
For your use case, 150! is a very large number so the numerical precision issue starts to kick in. I'd suggest you to use |gamma...

10 years ago | 0

| accepted

Answered
Absolute value of a 3-D complex vector
Are we talking about spatial components? If so, I believe it's the sum of absolute values for 3 components. You can think of it ...

10 years ago | 0

| accepted

Answered
Refer to elements in a matrix
You may want to look at |ind2sub| function, but do you mean |data = 22|? I couldn't see how the 2nd row 6th column maps to eleme...

10 years ago | 1

Answered
how to detect the number of signal in the presence of correlated noise. array signal processng
AIC and MDL tests may be good starting points for such tasks. HTH

10 years ago | 0

| accepted

Answered
What are "frequency bins" ?
frequency bins are intervals between samples in frequency domain. For example, if your sample rate is 100 Hz and your FFT size i...

10 years ago | 18

| accepted

Answered
Time Delay Beamforming with microphone arrays
You need to put quote around it because it supposed to be a string, like this hbf = phased.TimeDelayBeamformer('SensorArray...

10 years ago | 1

Answered
question about grand clutter simulation
Could you explain in more details? The clutter itself simulates a GMTI scene so the there is a correlation between the velocity ...

10 years ago | 0

Answered
Scan Angle Range in URA scanning radar
This is because you have backbaffled as true, so essentially your elements has no response toward regions beyond -90 to 90. Howe...

10 years ago | 2

Answered
How does Root-MUSIC algorithm for DOA estimation for a ULA work for a recorded audio file ?
In your example, you simulated the received signal at 20 degrees, that's why the estimated result is 20 degree. In real life, if...

10 years ago | 2

| accepted

Answered
Acoustic Beamforming in microphone arrays
To get the weights, you can do [y,w] = step(mvdrbeamformer,x); Then to plot the pattern, you can pass |w| as |'Weights'|...

10 years ago | 0

Answered
How to insert a variable in 'exist' command in matlab?
You can use |sprintf| if exist(sprintf('data-%4.4f-value-%4.4f.dat',c,rr),'file') == 2 HTH

10 years ago | 1

| accepted

Answered
Find frequency from fourier transform
The signal should be defined as exp(1i*2*pi*sin_freq*time) Otherwise, your frequency is scaled by 2*pi. HTH

10 years ago | 0

Load more