Risposto
Converting indices to time
This means your sampling rate is 200 Hz, so you can construct your time vector as fs = 200; t = (0:numel(x)-1)/fs; th...

circa 12 anni fa | 1

| accettato

Risposto
How to plot this signal?
y = filter([a b c],1,x); plot(y)

circa 12 anni fa | 1

| accettato

Risposto
How do you calculate this transfer function?
You can use |1i| for |sqrt(-1)| but mainly you need to set your |w| correctly, right now your step size is |pi/(2*Fs)|. It could...

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 2

| accettato

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

Risposto
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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

Risposto
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, ...

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 1

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 1

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 1

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

Risposto
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)); ...

circa 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

| accettato

Carica altro