Answered
How can I find the indices where an array is closest to a certain value.
This may be helpful to your problem http://blogs.mathworks.com/pick/2007/06/20/zero-crossings-on-arbitrary-signals/

13 years ago | 0

Answered
remove the space between the bars in a bar chart?
Are you looking for something like below? bar(1:10,1:10,1) The last argument, 1, stands for bar width.

13 years ago | 1

Answered
Array indexing question for vectorization
You can try the following trick c = unique(IND) d = accumarray(IND',B',[],@prod) A(c) = A(c).*d(c)'

13 years ago | 0

| accepted

Answered
OOP: How to avoid recalculation on dependent properties (I hope a MathWork Developer could give me an answer too)
Hi Ricardo, By definition, the value of dependent property depends on the values of object's other properties and probably th...

13 years ago | 0

| accepted

Answered
Designing a Filter in MATLAB
You need to figure out a rule yourself because other people cannot know why the specific row is an error but others are not. Usi...

13 years ago | 0

Answered
How can design a circular array for sound beamforming application?
Hi Syamesh, Here is an example for producing a circular array. It is actually from the command line help of phased.ConformalA...

13 years ago | 0

Answered
Fibonacci Sequence Recursion, Help!
Several issues: (1) the result of fib(n) never returned. (2) Your fib() only returns one value, not a series You can chan...

13 years ago | 0

| accepted

Answered
Magnitude of output signal after fourier transform filter?
If you want magnitude, it should be abs(f2)

13 years ago | 0

Answered
matched filter design of a given channel filter
conj(fliplr(hpof1))

13 years ago | 0

Answered
Question on plots i,e different line properties
You can use LineStyleOrder and ColorOrder to achieve the combination between color and line style. However, I'm not aware an int...

13 years ago | 0

Answered
square of a vector
My guess is you need an inner product, i.e. A = ||B-C||^2, you can do it many different ways, one way is B = ones(3,1); ...

13 years ago | 0

| accepted

Answered
Compute average of each value in a matrix without using for
you can use |conv2| or |imfilter|, for example x = magic(3) y = conv2(ones(3)/9,x)

13 years ago | 0

| accepted

Answered
Find Duplicates in cellarrays / use of subsindex for cellarrays
Is this what you are looking for? X = A(IA,:) Y = A(setdiff(1:3,A),:)

13 years ago | 0

Answered
How to send a set of bytes in fwrite or fprintf command?
Here is an example using |sprintf|, but |fprintf| is similar >> sprintf('0x%02x',24) ans = 0x18

13 years ago | 0

Answered
sgolayfilt function question ask
Do you have Signal Processing Toolbox installed? You can check if you have it by running ver Also, what does which...

13 years ago | 0

Answered
Windowing in a 2D-FFT non image matrix
I think the two approaches are equivalent, see the example below x = magic(8) w = hamming(8) fft2(x.*(w*w')) y1 = ...

13 years ago | 0

| accepted

Answered
Question regarding FFT MATLAB demo
Hi Martin, In theory, Fourier transform can be performed using any number of data points. In old days, people prefer to ha...

13 years ago | 1

| accepted

Answered
factor directional antenna array
Hi Pomisov, There are two ways you can see the directivity information. The first one is to plot the radiation pattern. Fo...

13 years ago | 0

| accepted

Answered
can i design a dual band bandpass filter using fda tool in matlab
There is also an option for designing "multiband" filter in FDATool

13 years ago | 0

Answered
Does anyone know how to get technical assistance with the Phased Array toolbox?
Hi Michael, I sent you a follow up email regarding your last question on Monday. If you need any further information, please ...

13 years ago | 0

Answered
How do we pass our signal through the filter designed by us using FDA tool?
Say you generated the MATLAB file named |myfilter.m|. Then you can do the following to filter your signal |x| Hd = myfilter...

13 years ago | 3

Answered
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...

13 years ago | 0

| accepted

Answered
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...

13 years ago | 0

| accepted

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

13 years ago | 1

| accepted

Answered
How to save a filename that is part user input and part text?
save(sprintf('%sadd',a),'x','-ascii')

13 years ago | 0

| accepted

Answered
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...

13 years ago | 0

Answered
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...

13 years ago | 0

| accepted

Answered
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...

13 years ago | 0

Answered
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...

13 years ago | 1

Answered
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/...

13 years ago | 0

Load more