Answered
Most populated range of floating point numbers in array
You can just do histc(a,[0 0.4 0.6 1]) if you know for sure you want the interval [0.4 0.6]. Otherwise, you can use |hi...

12 years ago | 0

Answered
Complex target simulation using phased.RadarTarget
Currently there is no such functionality in Phased Array System Toolbox. However, you can try to build one if you have the data ...

12 years ago | 0

| accepted

Answered
equality of an array
Did you try isequal(A(1:45,1:45),B)

12 years ago | 0

| accepted

Answered
Concatenate cell array into one string
x = {'a','b',5,[]} x = cellfun(@num2str,x,'UniformOutput',false) sprintf('%s ',x{:})

12 years ago | 2

| accepted

Answered
Filter Design from Weighted coefficient.
The impulse response coefficients is your FIR filter.

12 years ago | 0

Answered
xcorr and time lag
You already have a variable |lags|, you can simply do |lags(idx)|. BTW I didn't see how you compute the lags, but you could get ...

12 years ago | 0

Answered
Trajectory Display in phase array tool box
It currently doesn't offer any off the shelve solution but as a workaround you can use MATLAB's plotting capability. For example...

12 years ago | 0

Answered
Matching value to corresponding variable via string name
YO = eval(myvec)

12 years ago | 0

| accepted

Answered
How can I define my own colororder for a bodeplot?
You can define your own colormap using colormapeditor http://www.mathworks.com/help/matlab/ref/colormapeditor.html

12 years ago | 0

Answered
Delete specific rows from a matrix
A(any(A==1,2),:) = []

12 years ago | 0

Answered
how to do this?
10,000 samples are not very long, most computer should be able to handle it, you can use |pwelch| function directly to do this, ...

12 years ago | 0

Answered
Plot 3D Array Gain of 4x4 Planar Antenna Pattern + Weighting
If you mean directivity, you could do the following to generate the 3D plot f=3e9; c=3e8; lambda=c/f; ura = phased...

12 years ago | 0

Answered
cross correlation plot- symmetry about y axis
You have a cosine signal with multiple periods. So when you move back and forth for a period, you get another match. Guaranteed ...

12 years ago | 0

| accepted

Answered
Integrate function that calls a function
What is the dimensions of |value| and |prob|? What are the operation you want to do? If the function is vector valued, |inte...

12 years ago | 1

Answered
Trying to verify FFT code for research. Verification isn't working however.
I couldn't find the pictures but my guess is very likely you are off by the magnitude of |dt| because you are comparing a discre...

12 years ago | 0

Answered
How can we simulate the radiation pattern of an antenna element when it is frequency dependent?
You can specify a vector in |freqVector| and a 3D array in |RadiationPattern| with each page specifying a radiation pattern corr...

12 years ago | 0

Answered
how to include Figure color in my code?
set(gcf,'Color','w')

12 years ago | 0

| accepted

Answered
Difference in the output of butterworth and chebyshev fitlers
Are you trying to compare Chebyshev and Butterworth filter? if so, the following URL could be helpful. http://www.dspguide.co...

12 years ago | 1

Answered
Error with freqz plot
If I remember correctly you have an older version of MATLAB which does not support this syntax. You could try the following inst...

12 years ago | 0

Answered
Error when trying to use dsp.LMfilter
You release don't have this newer feature. If you have access to Filter Design Toolbox and would like to use an LMS filter, you ...

12 years ago | 0

Answered
how can i design the FIR Filters using window function in MATLAB ;without using inbuilt functions.
You will first know what kind of filters you want, things like cutoff frequencies, ripples, stop band attenuations. Based on the...

12 years ago | 1

Answered
Very simple question about strings
I think this utility can help http://www.mathworks.com/matlabcentral/fileexchange/10959-sort-nat--natural-order-sort

12 years ago | 0

Answered
Directivity did not match our expectation
Hi Ralph, In this example you are using an isotropic antenna element. So even though in this cut the beam is more focused, it...

12 years ago | 0

| accepted

Answered
use filtfilt with error of Not enough input arguments
You can do the following: bp521Coeff = coeffs(bp521); filtfilt(bp521Coeff.Numerator,bp521Coeff.Denominator,SIGNAL) ...

12 years ago | 0

Answered
Quick Question Regarding Vectors!!
You can do as following, did you try this and it didn't serve your needs? figure; plot(x(:,1)); figure; plot(x(:,2)); ...

12 years ago | 0

| accepted

Answered
Range Doppler Response has a linear bias
Hi Ramesh, Is it possible for you to provide a little more details? Like what are the fs and fc? What are the position and ve...

12 years ago | 0

Answered
Can't get the same Y-Axis for every Subplot
Did you try |linkaxes|? Does that solve your problem?

12 years ago | 0

| accepted

Answered
filtering in frequency domain
Your question is incomplete. You also need to know the sampling rate of the signal. Once you have the sampling rate, together wi...

12 years ago | 0

| accepted

Answered
Matlab Function block: how to output the result in different instants of time
The MATLAB Function block is called once at each time instance so to do what you want, you need to have a state that updates at ...

12 years ago | 1

| accepted

Answered
about the amplitude of spectrum by fft
why do you say for sin(2*pi*t) the polarity is reversed? The theoretical equation has 1/(2*1i) as the scaling factor, so the res...

12 years ago | 1

| accepted

Load more