Réponse apportée
Calculating the percentage in a matrix
Here is one way to do it in MATLAB A = [1 2 1;2 2 3;1 1 2]; [ua,~,uaidx] = unique(A(:)); uapercent = accumarray(uaidx...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Need help understanding what this filter does
It is just an auto regressive filter, in your case, your filter coefficients are b = 0.2 a = [1 -0.8] So if you writ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Won't convert NaNs in cell array to zeros
You should use |isnan| to test whether a number is NaN or not.

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How to save a filename that is part user input and part text?
save(sprintf('%sadd',a),'x','-ascii')

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Distribute the values from fft() logarithmically - not plotting
If your frequency bins falls on frequency bins of an FFT, you can try Goertzel algorithm http://www.mathworks.com/help/signal...

plus de 13 ans il y a | 0

Réponse apportée
Normalized Frequency in Analog Filter Design.
Normalized frequency is for digital filters. If you want to design analog filters, they don't apply. Like you mentioned, you sh...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Why does LinearFMWaveform require integer Sampling Rate / PRF ratios?
Hi Michael, The pulse supposed to repeat itself at the PRF. If the ratio is not an integer, then the waveform cannot be start...

presque 14 ans il y a | 0

Réponse apportée
some Matlab functions are not implemented in their m files
Those are built-in functions and the MATLAB file is only for the documentation purpose. When you call such functions, MATLAB kno...

presque 14 ans il y a | 1

Réponse apportée
How to use Floor command
This has nothing to do with |floor|, it's part of the floating point computation. See the link below http://matlab.wikia.com/...

presque 14 ans il y a | 0

Réponse apportée
human voice frequency between 200h to 3200h
Let's say the passband is between 200 and 3200 Hz and the stop band is 100 and 3300 Hz, you can use a Butterworth filter Ws...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
i want to filter a frequeny... ?
There are several issues in your code # your sample rate is 100Hz, not 1000Hz as you claimed # you specified a filter order ...

presque 14 ans il y a | 1

Réponse apportée
fprintf command issue. tricky columns.
The trick is |[a;b]|, like this fprintf('Variables A : %.f | Variables B : %.f\n',[a;b]);

presque 14 ans il y a | 4

| A accepté

Réponse apportée
FFT of Cosine wave in Matlab
Hi Sufyan, First of all, please delete the duplicate posts so people can contribute at the same place. The power spectrum...

presque 14 ans il y a | 1

Réponse apportée
sum every 24 rows in a vector
Not sure what your end format is, but the following code adds every 24 rows and retain all the results in one column reshap...

presque 14 ans il y a | 0

Réponse apportée
FFT based adaptive MVDR beamforming
Looks like you are doing subband MVDR. It should be the frequency for each corresponding band.

presque 14 ans il y a | 0

Réponse apportée
How to use Window functions?
Applying Fourier transform directly in one domain generates a first sidelobe at -13dB in the transformed domain. In a lot of app...

presque 14 ans il y a | 1

Réponse apportée
How can I change the displayed format of exponentials in an axis tick label?
Instead of using sprintf('%1.0e |',n) use sprintf('10^%d |',log10(n))

presque 14 ans il y a | 0

Réponse apportée
how can i calculate -3dB of given picture?
You could do 3dB in U and V direction separately along 2D cut.

presque 14 ans il y a | 0

Réponse apportée
How can I extract column vectors from matrix (with large number of columns) ?
Here is a simple example. Not sure if it's exactly what you want, but it may get you started x = magic(3) y = mat2cell...

presque 14 ans il y a | 0

Réponse apportée
How to compute the value in one point through the transferfunction?
I think the following is what you mean. s = tf('s') H = s/(s^2+2*s+10) evalfr(H,1+1i)

presque 14 ans il y a | 3

| A accepté

Réponse apportée
Experiences with release 2012b
The two features I like the most in the new interface 1. From Editor tab, Run and Time button. 2. The entire Publish tab, ...

presque 14 ans il y a | 1

Réponse apportée
Arrange (array of 9 numbers) in ascending order. (no sort)
You can do B = unique(A) But seriously, are you trying to implement a sort algorithm in MATLAB? If so, there are many a...

presque 14 ans il y a | 1

Réponse apportée
quick syntax question for saving run time
ind = sub2ind(sz,repmat((1:sz(1))',1,sz(2)),repmat(1:sz(2),sz(1),1),... matrixWhereItOccurs); accum_arr(ind(:)) =...

presque 14 ans il y a | 0

Réponse apportée
calculating the integration, arrayfun problem???
First of all, like @Azzi mentioned in the comment, your |y| is unused. It's not clear what you want to do, but exp(((si...

presque 14 ans il y a | 0

Réponse apportée
fzero help
The anwser is in the comments above From Matt Fig rt = 0; d = .1; cnt = 1; while rt<.1 rt = fzero(y,rt+d...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
array: concatenate two columns of integers to one colum
a = randi([1 100],[5 4]) % a 5x4 integer matrix b = cellfun(@num2str,{a(:,2:3)},'UniformOutput',false) c = cellfun(...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Inability to clear object definition - nonfunctional "clear classes"
This normally means your class is still referenced somewhere. The following link may be helpful (the second half directly talks ...

presque 14 ans il y a | 0

Réponse apportée
How can i can convert A matrix to the type i want
Here is another one A.*~eye(size(A))

presque 14 ans il y a | 1

Réponse apportée
How can i can convert A matrix to the type i want
A(1:size(A,1)+1:end) = 0

presque 14 ans il y a | 1

| A accepté

Réponse apportée
How is the Phased Array Partitioning Model supposed to be used?
Hi Michael, Since you have a phase shifter behind each element, there is really no need to go through ParitionedArray. Instea...

presque 14 ans il y a | 0

| A accepté

Charger plus