Community Profile

photo

William Rose


Active since 2007

Statistics

All
  • Personal Best Downloads Level 2
  • 24 Month Streak
  • Guiding Light
  • Knowledgeable Level 5
  • Revival Level 3
  • Thankful Level 3
  • First Review
  • 5-Star Galaxy Level 1
  • First Submission
  • First Answer

View badges

Content Feed

View by

Answered
I need to call up a vertex from polyshape command
@Bruce Griffin If you have a polygon pgon, of unknown size, get the number of vertices: pgon=polyshape(cosd(0:40:320),sind(0:4...

18 hours ago | 0

| accepted

Answered
HEART RATE from heart sound
@Monday David, If you attach the MP3 file, others can run your code. You will have to zip it first. [Edit: The sounds which ar...

1 day ago | 0

Answered
How can I Plot eigenvectors of a graph on the graph as bars coming out of vertices?
@Defne Odabasi, You can plot arrows representing a 2D eigenvectors, at specific locations, with quiver(X,Y,U,V), where X and Y ...

1 day ago | 1

Answered
Determining the input from the output using IFFT
@Ganesh Prasad, Here is a script that does the deconvolution in the frequency domain, using the ideas in my comment above. It a...

1 day ago | 0

Answered
Having trouble with lsqcurvefit for a heat transfer experiment.
@Nate, The plot below shows the measured data (red *), and the predicted temperature profile with h=150, 2000, and -4000. It s...

3 days ago | 0

Answered
Method used by fitnlm to estimate coefficients
@Alex, By default, fitnlm() minimizes the sum squared error. It uses the Levenberg-Marquardt algorithm to find its way downhil...

4 days ago | 0

| accepted

Answered
implicit numerical method: 1-D unsteady state heat transfer using finite difference method
@Joydeep Bagchi, I think you need to divide the long term (u(i+1,n)-2*u(i,n)+...) by 2, on the right side of your Crank-Nicolso...

6 days ago | 0

Answered
Interpolating data to get values at specific depth
@Luís Henrique Bordin, x=(0:10); y=(0:11)'; z=[1.0, 2.3, 5.6, 8.3]; % vectors x,y,z [X,Y]=meshgrid(x,y); %Make data() with de...

7 days ago | 1

Answered
How to find out the amplitude and duration of a sine wave of different amplitudes?
@A Lumbini, If you must use wavelets, do a continuous wavelet transform (cwt). THe Matlab documentation is good. Make a 50 Hz s...

9 days ago | 0

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

10 days ago | 0

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

10 days ago | 0

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

12 days ago | 0

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

12 days ago | 0

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

13 days ago | 0

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

13 days ago | 0

| accepted

Answered
How do I find the most stable N consecutive numbers?
@Ali Almakhmari, How about this: x=rand(1,2500); n=50; stdx=zeros(1,length(x)-n+1); % allocate array for stdev(x(i:i+49)) f...

13 days ago | 0

| accepted

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

14 days ago | 0

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

18 days ago | 0

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

19 days ago | 0

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

23 days ago | 0

| accepted

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

25 days ago | 2

| accepted

Answered
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

25 days ago | 0

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

25 days ago | 0

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

26 days ago | 0

| accepted

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

28 days ago | 0

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

29 days ago | 0

| accepted

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 1

| accepted

Load more