Community Profile

# William Rose

Active since 2007

All

#### Content Feed

View by

How to find out the amplitude and duration of a sine wave of different amplitudes?
@aswathy, @A Lumbini, I would not use wavelets. , I would use stft(). Make a signal which is 3 seconds long. The frequency is ...

22 hours ago | 0

Which optimization tool should be used for solving my convex optimization problem?
@KAGANA SARATH, I agree with @Torsten: try fmincon. It allows you to specify linear and nonlinear equality constraints and ine...

1 day ago | 0

Plot the first-order autocorrelation functions for the following light sources: perfect monochromatic source, a thermal lamp((Lc=1 μm, a led =100 μm), lasersLc=1 m and 1 km
@OMEIR HUSSAIN, [Edit: fix spelling errors.] You can format your code as code, by highlighting your code, then click the "Code...

3 days ago | 0

Box plot function help
@Benjamin Wilson, Others cannot run the code you supplied, since we don;t have singlepricingprogrammenew(), and I'm not suggest...

3 days ago | 0

Sharpe ratio in Report
@jorge cogno, [edit: the 0 in the equation below is for the risk free rate] "RiskFreeRate=0 TotalReturn=0.22943, SharpeRatio=0...

4 days ago | 0

how can I create a simple clutter model?
@Kerem Yüksel, [edit: fix spelling errors] [Edit 2: My initial implementation had an exponential distribution of clutter radi...

4 days ago | 0

| accepted

How do I find the most stable N consecutive numbers?

4 days ago | 0

| accepted

Comparing Finite difference method answer with analytical for 2d plate heat transfer
@Christopher, [Edit: add a line of code to display the maximum temperature for each value of N.] Another excellent answer fro...

5 days ago | 0

how to plot eigenvector calculated from eigs from the matrices created by freefem++
@AMIT, quiver() is good for 2-D vectors; quiver3() for 3D. For an example, I will use the magic square matrix, but I could us...

10 days ago | 0

how get the range from FFT on FMCW radar data
@Simeon, You need to specify exactly what the signal that you have consists of. It could be the received signal mixed with a re...

10 days ago | 0

How to plot a linear function?
@Jenni, [edit: Fix typo: change "values at" to "values are"] It looks like you want to plot measured data as well as the best-...

14 days ago | 0

| accepted

Why the calculated phase differs so much from the real phase of the signal?
@Janko, The DFT expresses a signal x(k) as a sum of sinusoids, each of which is sampled at regular intervals. The phase angles...

16 days ago | 2

| accepted

Create a node in the space between two nodes (A and B) and following the direction normal to a node (N)
@Alberto Acri D=(A+B)/2; % the location E=cross((A-B),(N-D)); % the direction good luck

16 days ago | 0

How to solve this function?
@Ramesh, I am not sure what you mean by "how do you solve this function". You have posted a function. par=struct('A',1,'E',2,...

16 days ago | 0

Solving 2d heat problem using meshgrid
@Ali, [edit: fix spelling erors] A 10x10 mesh for this problem is so few points that it makes it hard to set up the problem an...

17 days ago | 0

| accepted

How to reduce \t commands
@TheSaint, Hard to say, since we don't know what F and SC and E are. You use the word table. Have you used Matlab's T=table...

19 days ago | 0

Advice on formulating a minimization function
@Collin Pecora, If you want to use multiple sources of data, with different levels of measurement error, to estimate parameters...

20 days ago | 0

| accepted

looped 3D FFT of 4D data
@sbr, P2 is 64x64x64. P1 is 1x33. Your plot shows that one column along one corner-edge of the cube P2 is zero. But P2 is not...

22 days ago | 0

Plot a Probability Density Function in 3D
@Victor Carneiro da Cunha Martorelli, For a one-dimensional random variable, you could do the Kolmogorov-Smirnov test, or the A...

22 days ago | 0

Detect boundaries seperating data blocks in a time series signal
@Ashley, I am actually very impressed that findchangepts() did so well. I recommend adjusting the optional arguments of findch...

22 days ago | 0

How to get the value of X-axis at the -3dB
@Chris, There is no guarantee that H(f) will = -3 dB at one of the frequencies at which you evaluate H(f). Therefore, since it ...

22 days ago | 1

| accepted

Special case of spectrogram not match FFT
@John, There are many ways to normalize a spectrum. Mathematicians like to have a factor 1/sqrt(n) in the forward and reverse ...

23 days ago | 0

Fourier transform spatial domain-DSP
@Nimasha Pilippange, Matlab's fft() will work fine on spatial data. The only difference is in the interpretation of the transf...

23 days ago | 0

| accepted

two signal one is original signal i.e. pulses and other is receiving signal with a noise. finding the delay in signal by using the cross correlation.
@Mahesh, The error above occurs if you pass a non-integer scalar value for receiver_signal, because a scalar is interpreted as...

26 days ago | 0

How to find fitting optimized parameters to fit a system of non-linear ODEs to experiment.
@Buhari Ibrahim Matlab has excellent tools for this. https://www.mathworks.com/help/optim/ug/optimizing-a-simulation-or-ordina...

26 days ago | 2

How to delete or exclude an entire matrix if it contains all zeros
@Caitlin, you'll have to be more specific about how you are reading in the data in order to get a useful answer. X=zeros(10,10)...

26 days ago | 0

| accepted

Huge inaccuracies in plotting diode IV characteristic in Matlab
@Nicholas, It is clear that your model does not fit your data. So there has been an error in the data collection, or the mdoe...

27 days ago | 1

| accepted

Adjusting Parameters in Transcranial Doppler Audio Processing: Seeking Guidance on Gain, SWEEP, and Audio Playback
@Patrícia, For colors, you can specify a colormap that gives colors more like what you want. See here, and scroll down to see ...

1 month ago | 0