Community Profile

# William Rose

Active since 2007

All

#### Content Feed

View by

Time series from Power Spectral Density (PSD)
@Albert Zurita, you wrote: I would like to compute different time series (time realizations) of a given PSD. I've read there ar...

13 hours ago | 0

How do i find the snr of a signal, before filtering and after filtering?
@Rafia Noshin, [edit: change SNR calculations from ratio of amplitudes to ratio of powers] It depends. First of all, SNR is ...

20 days ago | 0

Fast time integration troubles
@Federico, The code you use to convert data to data_volts looks reasonable. Your code assumes that the ADC produces an output o...

22 days ago | 1

Use imufilter to calculate rotation matrix to earth frame
@Yunda Liu, [Edit: correct the sign in one element of one of the rotInit matrices, below.] You have (linear) acceleration (in ...

24 days ago | 0

| accepted

How to calculate the BER for NLOS channel?
@Parul, the calculaiton of bit error rate depends strongly on how you model the encoding and decoding of bits, as well as how yo...

24 days ago | 0

How to calculate the BER for NLOS channel?
@Parul, The bit error rate for near-line-of-sight digital communication depends on many factors, including the carrier-to-noise...

24 days ago | 0

Optimize function while meeting a condition
@Jon Bilbao, the link to the Wikipedia article is helpful. Now I understand that cant has units of length, not angle. I cann...

1 month ago | 0

what is wrong with ifft process on this image?
@2NOR_Kh, img = imread("cameraman.tif"); figure, subplot(121); imshow(img); title('Original'); [m, n]=size(img); %img_fft = ...

2 months ago | 0

How to add a subscript to a plot of ordered pairs in the order in which they are plotted.
@Tatum, A=[1,1; 0,1; 0,0; .5,.5; .5,1.5]; labels=string(1:length(A)); plot(A(:,1),A(:,2),'bo') xlabel('u'); ylabel('v') tex...

2 months ago | 1

| accepted

Optimize function while meeting a condition
@Jon Bilbao, Please explain your function in more detail. It is good practice to include comments in a function eplaining the ...

2 months ago | 0

How I can define/ calculate reflection of the ray correctly? As my reflection makes mistake in direction
I meant the comment above to be an answer; please consider it to be one. t is a scalar, t>=0 so that the reflected ray is only ...

3 months ago | 0

| accepted

Generate trapezoidal waveform from a square waveform using convolution
@Victor Dos Santos, [edit correct capitalization errors] Your convolution worked and it did produce a trapezoidal signal. You...

3 months ago | 0

| accepted

Plotting Several Data Sets in a For Loop
@George, You write: x_new=x_prev+u0x*i+0.5*ax*(i^2); which is not correct, given how you define variables. You define i as cu...

3 months ago | 0

how to smooth the data of array to get a smooth surface?
@Abdullah, an example of a median filter for a surface: First, make a surface with some "noise": A=repmat(-(-20:20).^2/400,31,...

3 months ago | 0

how to smooth the data of array to get a smooth surface?
@Abdullah, Check this out: https://www.mathworks.com/help/matlab/data_analysis/convolution-filter-to-smooth-data.html Or do a...

3 months ago | 0

How do I get directionality from the departure() function
@Steve K, Multiply the values from departure by sign(lon1-lon2). Define points: lat1=[45.73366;42.30074;42.11033;37.69088]; ...

3 months ago | 0

| accepted

solving 4 equations with 4 unknowns
@Hamza Harbi, because the equation has two solutions. The first values of a,b,d,e are one solution; the second values of a,b,d,...

3 months ago | 0

Sinusoidal curve from discrete dataset
@Ashfaq Ahmed, [edit: I changed the comments in the code for t1 and t. I added a line to display the fitted values.] load('si...

3 months ago | 1

| accepted

How can I find the total distance of the path from the dfsearch on this code?
@Uche, Try dTot=0; for i=2:length(v) dTot=dTot+sqrt((x(v(i))-x(v(i-1)))^2+(y(v(i))-y(v(i-1)))^2); end That seems too...

3 months ago | 0

| accepted

Plotting different color points based on array values
@Elena Zucchetti, One way: x=1:100; N=length(x); DE=10*rand(1,N); c=zeros(N,3); %allocate colors for i=1:N, if DE(i)>5, c(...

3 months ago | 0

| accepted

Why I don't get a curve plot by adding term2 to phi?
@Shaily_T, Please post a question in the simplest possible form that will allow others to assist you. In this case, you can ma...

3 months ago | 1

How can I remove a pulse from a soundwave?
@Valentin Puiu, Sound is in the range 20 Hz-20 kHz. A 10 Hz signal will be felt more than heard. You have added a square wave...

3 months ago | 1

| accepted

Solving a system of second order ODE backwards
@Padi, First, try to get your script to work in the normal forward direction. The funciton needs to be adjusted. You have fun...

3 months ago | 1

Calculate phase shift i bode plot for 2 order system data
@Olga Rakvag, [edit: In case it's not obvious: Add the 2*pi factor in both places where f/w_n appears, in your formula for thet...

3 months ago | 1

| accepted

Calculate the occupied bandwidth of non-stationary signals
@Yousef, yes there is a way. Decide how you want to define and measure bandwidth. For example, you could define and measure it ...

3 months ago | 0

Tranform a point another coordinate system
@Furkan KORKMAZ, Do you want a symbolic solution or a numerical solution? If you want a numerical solution, then define the co...

3 months ago | 0

| accepted

Circular time plots using polarhistogram?
@Sadegh Rahimi, Suppose you have the wind direction in degrees at 1 minute intervals for 1 day: windDir=360*rand(1,1440); Mak...

3 months ago | 0

| accepted

How to make equation work for each frame of data?
@Amanda, [edit: correct error in my code] This looks like something I would have assigned when I taught biomechanics or when I...

3 months ago | 1

| accepted