Answered
How to find water vapour density for gaspl
That could be a measurement value you obtain from, say, observatory or historical measurement data? For example, in ITU standard...

8 years ago | 0

Answered
how to save work space command in script file
You can try the |diary| function <https://www.mathworks.com/help/matlab/ref/diary.html> Alternatively you can copy and pas...

8 years ago | 0

| accepted

Answered
3d plot peaks
You can do something like this c = 1:200; f = 1:300; % replace with your freq a = filter2(...

8 years ago | 0

Answered
Split array into cell arrays of different size
To do what you want, you can use the following lines, which is a slightly modified version of yours. Bi = find(B==1) ...

8 years ago | 0

| accepted

Answered
Why does hilbert tranformer give a phase-shifted but amplitude-reduced signal?
The phase shift is expected so I assume you are talking about the amplitude? This is because the filter is not ideal. If you do ...

8 years ago | 1

| accepted

Answered
How to change the phase center of a subarray in phased array antenna
Currently the phase center of a subarray cannot be changed. Could you share your use case regarding why you want to change it? A...

8 years ago | 0

| accepted

Answered
Why is the result of the step signal convoluted with the impulse response of a lowpass filter not equal to the stepresponse of the lowpass filter?
You are mixing continuous and discrete in your model. For example, your impulse is discrete, your convolution is discrete, but y...

8 years ago | 0

Answered
Maximum size of output not bounded in matlab function block for linspace error
You said the value |n| is from a constant block, so do you ever need to change it? If the answer is no, then you can consider ha...

8 years ago | 0

| accepted

Answered
What is the benefit to supply the gradient for function minimization?
I'm not an expert on this, but I believe that if you don't provide the gradient function, then it has to be numerically estimate...

8 years ago | 0

| accepted

Answered
How to extract the constant phase of a sine wave?
Do you know omega? If so, you can do something like this fc = 10; omega = 2*pi; t = (0:9)/10; p = pi/2; x = sin...

8 years ago | 1

Answered
Beamforming performance depends on the frame size?
The Frost beamformer has an FIR filter whose coefficients are derived using sample matrix inversion (SMI) so the frame size is r...

8 years ago | 0

Answered
Where I can find helperCalculateCouplingMatrix.m function ?
It's a helper function for the example. If you open this example in MATLAB, there should be a button you can click to open the e...

8 years ago | 0

Answered
Phased array Channel problems with user fed position and velocity data.
Is it possible to share some of these parameters, like the position, velocity, and acceleration, as well as the prf and the samp...

8 years ago | 0

Answered
Error occured when I try to use matched filter function for my signal
This means that you can not put two phased.MatchedFilter in an array. For example f1 = phased.MatchedFilter; f2 = phased...

8 years ago | 0

Answered
Compute double sum or double integral throug sum
If the ultimate goal is to compute the integral, you can consider using |integral2| <https://www.mathworks.com/help/matlab/re...

8 years ago | 0

| accepted

Solved


Extra safe primes
Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

8 years ago

Solved


Basic electricity in a dry situation
&#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#...

8 years ago

Solved


Pentagonal Numbers
Your function will receive a lower and upper bound. It should return all pentagonal numbers within that inclusive range in ascen...

8 years ago

Solved


Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

8 years ago

Solved


Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

8 years ago

Solved


Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

8 years ago

Answered
MONOPULSE SUM and DIFFERENCE Antenna Patterns
Thanks for the feedback, the example could use better description and figure. This being said, the pattern itself is not wro...

8 years ago | 0

| accepted

Answered
how to specity axis using imagesc
You can just do imagesc(linspace(0,1,40),linspace(0,1,200),A) HTH

8 years ago | 2

| accepted

Answered
Anonymous Function Array Output
You are returning two separate outputs, the instruction says "The output should be returned as a 1D array" HTH

8 years ago | 1

Answered
Generating C code from MATLAB functions
Could you share which release are you using? Looks like your script is generated from filterDesigner (or FDAToll)? If you are us...

8 years ago | 1

Solved


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

8 years ago

Answered
fft dim parameter when ndims(x) > 2
If you have a multidimensional array x, say x = ones(3,4,5) then fft(x,[],3) will perform FFT on the dimension ...

8 years ago | 0

| accepted

Answered
Repeat vector n times
Have you tried |repmat|, say n = 2; t_vec = [ion ion ioff ioff ioff]; repmat(t_vec,1,n) HTH

8 years ago | 2

| accepted

Answered
How to avoid error calculation going to infinity when dividing by near-zero values?
There are several ways to handle this, for example, you can add one more line to set all those points to a predefined value ...

8 years ago | 0

Answered
Is there a simple code for matched filter?
You may want to take a look at the following thread <https://www.mathworks.com/matlabcentral/answers/4502-matched-filter> ...

8 years ago | 0

Load more