Community Profile

photo

William Rose


Active since 2007

Statistics

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

View badges

Content Feed

View by

Answered
How do I convert a 2d matrix to a 3d matrix and vice versa efficiently?
@Yeon-Mo Yang, A(:,:,1) = [1 2;3 4;5 6]'; A(:,:,2) = [10 20;30 40;50 60]'; A(:,:,3) = [11 21;31 41;51 61]'; A(:,:,4) = [100 ...

1 day ago | 0

Answered
A non centered method to compute velocity derivative
@Jacopo Rossi, [edited to crrect typographical errors] If you use a non-centered-to-the-right method, you will have issues on ...

3 days ago | 0

Answered
Create a Rayleigh distribution fitting experimental data
@DANIELE PASINI, very interesting. The autocorrelation shows some ringing at a period of about 16 samples, i.e. some kind of re...

4 days ago | 0

Answered
Create a Rayleigh distribution fitting experimental data
@DANIELE PASINI, [I edited this comment to correct typographical errors.] histogram(peaks) plots the number of occurences of...

5 days ago | 0

Answered
Convert a table of S param to Z param
@Venkatkumar M, How do you know s2z does not work? Do you get an error message, and if so, what? The input to s2z must be comp...

5 days ago | 0

| accepted

Answered
Create a Rayleigh distribution fitting experimental data
@DANIELE PASINI, I plotted your data. name='Cartel1'; data=load(name); Data=data.data; %extract array 'data' from the stru...

6 days ago | 0

| accepted

Answered
Create a Rayleigh distribution fitting experimental data
@DANIELE PASINI, here is code with simulated data to demonstrate. As others have said, your data may not be appropriate for Ra...

6 days ago | 0

Answered
Unexpected power spectrum of a signal with uniform random amplitude values
@Vlad Atanasiu, You are correct that the power spectrum of a random signal is expected to be approximately flat. However, the ...

13 days ago | 0

| accepted

Answered
Hi, can anyone help me to program a code for the equation with initial and boundary conditions using finite difference method
@Nur Nadhirah Syed Malik, See attached. I have left out some parts, because this sounds like a homework assignment, and you wil...

23 days ago | 0

Answered
About FFT of a wave
@Daniel Wanesh, Fm = 2*10^6; Em = 4; t = 0 : 5.5*10^-7 : 1*10^-4; ym = Em.*cos(2*pi*Fm*t); Ym=fft(ym); %compute the disc...

23 days ago | 0

| accepted

Answered
How to assess frequency stability of sung notes while keeping frequency precision under the possiblity that a vibrato (frequency modulation) is present.
@Jonas, I put my notebook computer on a piano and reorded while I played the notes CDEFGA. File attached. I used this file as an...

24 days ago | 0

| accepted

Answered
Curve fitting with two variables
@Kishor Kumar Johari, Here is a sample solution. It uses calcZ(), which I posted previously, and it uses the simulated data fi...

25 days ago | 0

Answered
How to assess frequency stability of sung notes while keeping frequency precision under the possiblity that a vibrato (frequency modulation) is present.
@Jonas, Are you willing to post an example file of such a recoridng? Do you have an external reference signal, like a trigger,...

26 days ago | 0

Answered
Skip analysis when you have NaN or 0
@luccas santos, a=1; %try replacing "1" with "0" or "NaN" if ~(isnan(a) || a==0) disp('a is not NaN and is not 0.') els...

27 days ago | 1

Answered
Adding sine signal to dynamic signal
@Nurullah Çetin, dt=0.5; %time step (s) t=0:dt:100; %time (s) tlag=10; %lag (s) x=rand(1,length(t)); y=z...

28 days ago | 0

Answered
Similarity Comparison to Determine Accuracy
@mustafa can Kurt, The image you provided only shows two bad and two good examples. Even if we had four examples of each, thi...

28 days ago | 1

| accepted

Answered
How can I record the values of pa and p0 in a table in this code?
@M G, see attached. It runs. It produces the console output below. It also produces the plot below. There are comments in th...

1 month ago | 1

| accepted

Answered
How do you perform generic value in MATLAB?
@Luiz Fernando Vieira dos Santos, What is "fi()" in the first line of your code? I am not sure I understand your question. ...

1 month ago | 0

Answered
Red freq audio file
@Blue MU, Sounds like a good project. Your code looks like a good first step. What happens when you run your code? Do you get...

1 month ago | 0

Answered
How can I record the values of pa and p0 in a table in this code?
@Mustapha Gharib, plot(pa35/133.322,p035/133.322,'ro') The command above wil work if pa35 and p035 are vectors of the same len...

1 month ago | 1

Answered
Getting different plot ranges
@Nathaniel Porter, T=readtable('glucose.csv'); %read file into table T You will see that T has columns named date, time, gluc...

1 month ago | 0

| accepted

Answered
using logical indexing to find events
@Mathieu NOE, Thank you very much!

1 month ago | 0

Question


using logical indexing to find events
I have three vectors of the same length: t, x, y. I also have tevent, whose elements are a subset of the elements in t. Can I u...

1 month ago | 3 answers | 0

3

answers

Answered
Incompatible Indices when updating matrix in the loop
@Mouath Abu-Daoud, On the line in question, you are assigning vector xdft (right hand side) to one element of array PDarray(). ...

1 month ago | 0

| accepted

Answered
Find the divergence of a vector field f=xyi+yzj+zxk
@Akinchay Vikas Jain, Your question looks like a homework or exam problem, which is not the purpose of this site. Also, you d...

1 month ago | 0

Answered
How to divided the signal to matrix where contain on rows and columns .
@Rasheed Majeed, Create a signal of length 102400: y=rand(102400,1); Change the shape to 100 columns: y=reshape(y,[1024,100]...

1 month ago | 0

Answered
Problem Defining Function (Time Shift)
@selin oktay, Here is a rewrite of your function that works like yours worked for scalat t, but it also works if t is a vector....

1 month ago | 0

Answered
Problem Defining Function (Time Shift)
@selin oktay, in your first section of code, I think you meant to write "T/2" not T2. In your second sement of code, add "end"...

1 month ago | 0

Answered
indicating when data reaches a certain threshold
@Perri Johnson, Here is ground reaction force for 10 second sampled at 2.5 kHz. (Really one step, duplicated to make 10.) cle...

1 month ago | 1

Answered
indicating when data reaches a certain threshold
@Perri Johnson SInce you did not provide data I will provide some data=load('grf_z_raw.txt'); t=data(:,1); y=data(:,2); plot...

1 month ago | 1

Load more