Réponse apportée
Matrix with binomial permutation
dec2bin(0:2^K-1)-'0'+1 HTH

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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 ...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 1

Réponse apportée
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://...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
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)...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
array average every 30 values
squeeze(mean(reshape(A,30,48,31))) Assuming |A| is the matrix HTH

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 1

Réponse apportée
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...

plus de 9 ans il y a | 3

Réponse apportée
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*...

plus de 9 ans il y a | 1

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

plus de 9 ans il y a | 0

Réponse apportée
I have a matrix A=[1 0 1 1;0 0 1 0; 0 0 1 0; 0 0 0 0] and I wanted to count the neighbor with value one of each pixel with value one. So I need to reach this result: result=[0 0 2 2;0 0 2 0;0 0 1 0;0 0 0 0]. I will be appreciated for your help.
You can extract the info using logical index u = [1 1 1;1 0 1;1 1 1]; result = conv2(A,u,'same').*(A==1) HTH

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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

plus de 9 ans il y a | 1

Réponse apportée
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...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 1

Réponse apportée
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

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 18

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 1

Réponse apportée
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 ...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 2

Réponse apportée
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...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
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'|...

plus de 9 ans il y a | 0

Réponse apportée
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

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
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

plus de 9 ans il y a | 0

Réponse apportée
DFT linearity - "melodic" tones spectrum problem
You need to define the |sum_dft| as sum_dft = s1_dft+s2_dft+s3_dft; instead and then plot and compare using |abs(sum_dft...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Kalman filter Rt and Qt
Both Rt and Qt should be square matrices. Rt is the process noise covariance and Qt is the measurement noise covariance. The sub...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
CFAR Algorithm showing incorrect results
I don't know what CFAR algorithm you use, but if you just need the peak, you can simply use |findpeaks| function. According t...

plus de 9 ans il y a | 0

Charger plus