Community Profile # William Rose

Active since 2007

#### Statistics

All
• • • • • • • • • • #### Content Feed

View by

Why does smoothdata give bad results at the beginning and end of a dataset?
@Rick Yuan, You are not using the wrong function. x=1:250; y=12.2+4.5*sin(x*2*pi/1200)+rand(size(x))/10; plot(x,y,'-b') L...

ongeveer een uur ago | 0

1D Heat Conduction using Eulers Explicit discretisation
@Yashraj Randad, Note that length(x)=21, but your n=20. This causes problems. I recommend that you initialize a bit different...

ongeveer 7 uur ago | 0

| accepted

Which image processing or filtering is used in this image?
@burcu bilgic, it looks like the image on the right is the complement of the image on the left. J=imcomplement(I) From the hel...

ongeveer 10 uur ago | 0

Align smartphone and vehicle using Acceleration and Orientation from Matlab Mobile
@David Stefan, Try the following for the rotation matrix R=: where [0.375561 -0.385512 0.023676]. The matrix Rxyz is de...

ongeveer 20 uur ago | 0

Data treatment: How to use exponential regression types of functions to approximate to a specific model (tobler's hiking function)
@Rúben Ricardo, You have deltaLat(i,:)=(B(i+1,1)-B(i,1))*60*1852; % diferença das latitudes deltaLon(i,:)=(B(i+1,2)-B(i,2))*6...

ongeveer 22 uur ago | 1

| accepted

Align smartphone and vehicle using Acceleration and Orientation from Matlab Mobile
@David Stefan, The information provided is not sufficient to determine the rotation matrix. Also, the data you gave is not con...

1 dag ago | 0

Plotting Wing Surface Through a Grid Point
@Fabio Taccaliti, [edit - fix typo in comment - misspelled Joukowsky] Here is a simple and elegant way to generate a wing prof...

1 dag ago | 0

Plotting Wing Surface Through a Grid Point
@Fabio Taccaliti, I do not understand what is wrong with the final image generated by your code. It looks good to me. The on...

2 dagen ago | 0

How to calculate angle between two vectors?
@Ors, My comment above was intended to be an answer. Please accept this answer if it is satisfactory. Here is some code. F=[-2...

2 dagen ago | 1

| accepted

How do I plot the FFT of signal from accelerometer
@Harrison Osasogie Edokpolor, Try the code below. It makes the figure below. The figure shows that the oscullaiton frequency...

2 dagen ago | 0

How do I plot the FFT of signal from accelerometer
@Harrison Osasogie Edokpolor, Sampling rate is fs=833 Hz and there are N=1110 samples. (I deleted line 1 since it has only one...

2 dagen ago | 0

least square method with multible unkonwn
@Rolfe, I will look at this later this week, if you do not have an answer by then. Below is a part of an analysis I did related...

6 dagen ago | 0

Integration of the expected value
@Yuriy, I'm not sure I understand. Is a uniformly distributed random variable, or is the expected value of p, which is a unif...

7 dagen ago | 0

Periodic input to ODE solver
@Eric Scott, Create a smooth pulsatile input signal with a specified non-zero duration. Add it to your ODE. For example, consi...

7 dagen ago | 0

| accepted

@Aristo, Yes it is possible. Three points define a quadratic equation. The quadratic equation that passes through (x1,y1), (x...

14 dagen ago | 0

Find out whether a 2D line (y = a*x + b) intersects with a square without using "solve" (I need something faster)
@Perico Nasdemico, If the slope, a, is positive, then, if there is an intersection, the line passes below or through the upper ...

14 dagen ago | 1

How can I plot x and y RGB values of an image to analyze?
@omar soufan, Try the following: im1=imread('knifetest1.jpg'); zr=im1(:,:,1); %get the red intensity array zg=im1(:...

14 dagen ago | 0

| accepted

How to plot desired datapoints on a curve?
@ekagra gupta, You must have a vector that (58 x 1), which accompanies yhat (58 x 1). Let us create vectors to use as examples...

14 dagen ago | 0

How to use locminima in a signal with nan values?
@Tomaszzz, Here is the script I usd to make the figure I showed in my comment. It makes two plots, samples of which are below. ...

20 dagen ago | 1

| accepted

With PCA, how much of the photo did i compress?
@ali yaman, The attached script applies PCA image compression to image ben.jpg. It reconstructs the image with 10 principal com...

21 dagen ago | 1

How to apply butterworth filter to data in cells? filter went wrong
@Tomaszzz, You're welcome. Good lcuk with your research.

21 dagen ago | 0

With PCA, how much of the photo did i compress?
@ali yaman, The percent compression is (Au-Ac)/Au, where Au= the amount of information needed to generate the uncompressed imag...

24 dagen ago | 0

| accepted

How do I translate a variable into HSV color values?
@Shovnik Paul, Vmax=5; while true voltage = a.readVoltage('A0'); color = hsv2rgb(voltage/Vmax,1,1); fill([0 1 1...

24 dagen ago | 1

| accepted

How to apply butterworth filter to data in cells? filter went wrong
@Tomaszzz, This appears to be a record of vertical ground reaction force for 7 steps on an instrumented treadmill, from a subje...

24 dagen ago | 1

| accepted

Linear best fit model
@Aniruddha Das Here is an example in which the fixed slope is 1.3 and the best fit slope is approximately 1.0. x=0:1:100; N=l...

25 dagen ago | 0

Only required the mean value out rather then every single value in a data

25 dagen ago | 1

| accepted

Markov chain modeling of multipath propagation
@demos serghiou, I recommend reading papers on the use and estimation of Markov models for multipath propagation. When you hav...

25 dagen ago | 1

Trying to access individual columns in a map container that has 41 markers, each with an XYZ point.
@maura belcher, I have never heard of or worked with map containers, but I can see they could be useful in this situaiton if we...

26 dagen ago | 1

| accepted

How can I get the FFT of a flat signal with a peak?
@Leonardo Molino, You are correct to have doubts about the interpretation of the FFT of dE(t), given that dE(t) is computed the...

26 dagen ago | 1

| accepted