Community Profile

# William Rose

Active since 2007

All

#### Content Feed

View by

how to place two images on canvas by a reference vector to relate their relative distance, one image is fixed
@Yuhong, You write: "I'm confused by the matlab coordinate system": X increases as one goes to the right, from the top left co...

13 hours ago | 0

Make dla with circles instead of pixels
@george korris, Here is a script that does what I think you are requesting. Each monomer in the aggregate is represented by a c...

2 days ago | 0

| accepted

@Claudio Iturra, [edited: crrected spelling mistakes] When I downloaded the file and tried to open it with Excel on my Windoes...

6 days ago | 0

| accepted

Given a quadrilateral image, not necessarily a rectangle, how to find its top left point's x-y coordinate
@Yuhong, Since you did not include an image, I will make one. Then I search along the diagonals for a Non-NaN pixel, starting a...

6 days ago | 0

| accepted

Gravity turn solver only works for a gamma of 90 degrees
@Jordan Booth This looks like a nice model! Your equation for = d(theta)/dt = dp(2)/dt is dpdt = [... (p(3)*cosd(p...

6 days ago | 1

| accepted

How to plot the volume shared by two 3D shapes
@Michael Boyte, patch() and fill3() are options worth considering. With either approach, you will have define the lens-shaped ...

7 days ago | 0

| accepted

Data fitting using thin-plate spline/interpolation
@Pelajar UM, I too am unable to find the coefficients for the thin plate psline model. I can evaluate the fitted model in two ...

7 days ago | 1

| accepted

How to design a FIR filter by frequency response Datas for shaping white noise
@venkat ta, I think you want to create an FIR filter whose response is equal to the invese of the coherence. I will assume thi...

8 days ago | 0

| accepted

How can i create frequency and time domain from raw data
@ALIFF DANIAL, To plot the time domain data, use plot(). Read the help for plot() if you are unsure. To plot the data in the ...

8 days ago | 0

How do I get I pass out the input parameter to ode45 integration
@Hafeez Jimoh, I think @Torsten, is right, as usual. I think you are simulating a one-dimensional system in which the velocity...

8 days ago | 0

| accepted

I want to know how to solve Green's Theoreom
@명우, The advice from @Roshan Swain is very good. Share your table of Bn, Bt, and share the path you plan to take. (The path i...

8 days ago | 0

ODE23s Solver "Not enough input arguments"
@ephoi, Your code: global sweep Pp C1 C2 Pt theta % constants r0=2e-5; % Radius of the tube without membrane, [m] Ri...

20 days ago | 0

| accepted

How to fit curves with two variables to equation?
@Amadeus Wolf, please post the data (the three matrices) which you are trying to fit: k and c/c0 and v. [edit: Remove reference...

21 days ago | 1

How do I register or stitch multiple sub-images together into a larger image using unique fiducial features with rigid transformation?
@gwoo, Use xcorr2(). See the example here: Align two images using cross correlation Determine the best alignment of image 1 ...

26 days ago | 0

Create a square grid with some random points inside that follow the poisson distribution and use each of these points as a starting point for my function
@george korris, If you place a point at random in the unit square with rand(), then the the distribution of points inside small...

26 days ago | 1

| accepted

How to transform a set of lines to a set of circles using möbius transformation?
@Niloufar, [edit: fix typos in my text; code is unchanged] Your image does not include a scale or (more importantly) an indica...

27 days ago | 0

| accepted

How to get the spectrum plot of a 5G NR signal generated by MATLAB?
@Susan, I downloaded and unzipped the large data file, waveform.mat, using the link you provided. I see that the signal is com...

27 days ago | 1

| accepted

What filtration should be used for a respiratory signal between 5 and 60 breaths per minute?
@Pawel Slazak, %% Load data a=importdata('RAW_signal.txt'); x=a.data(:,1); %x=channel 1 fs=25; ...

27 days ago | 0

| accepted

What filtration should be used for a respiratory signal between 5 and 60 breaths per minute?
@Pawel Slazak, pease attach the raw data. Please explain what your goal is, because this will determine what approach to take...

28 days ago | 0

Take X Y Z coordinates and calculate kinetic energy
@Daanish Qureshi, The solution you described sounds good. It is implicit in your proposed solution that the particles do not i...

28 days ago | 0

How to shift experimental data (not a function) in a loglog plot?
@Alfredo Scigliani, Multiply all y-values of the trace in quesiton by a constant. This will cause a parallel vertical shift on a...

1 month ago | 1

What is the efficient way to loop though a multidimensional array in matlab?
@venu, Be sure to allocate all arrays and vectors before doing the looping. I don't think the order of looping will have a sig...

1 month ago | 1

Scatter chart with colours from dark to light along the x-axis and blue to red along the y-axis
@T, b = [0 0 1]; % Blue r = [1 0 0]; % Red %x =[27.5 26.8 68 70.5 43.5 45.2 72]; %y = [7.2 3 7.9 1.7 4.23 1.057 0.89]; x ...

1 month ago | 2

| accepted

How to detect stride cycle of EMG with GRF data?
@Mario, You said in your original post that the EMG data was sampled at 2 kHz. You said in your comment: "I understand the Hz ...

1 month ago | 0

How to detect stride cycle of EMG with GRF data?
@Mario, [Edit: change sampling frequency from 5000 to 500] You already have the binary vectors for left contact, right contact...

1 month ago | 0

How can I align multiple curves on one plot to a central point?
@OmartheEngineer, It would help if you would attach the actual data as a .mat file or a text file for easy import. Your choce ...

1 month ago | 1

Plot mean frequency of EMG signals
@Prawee Pongsing, Alty & Georgakis (2011), whom you cite, use their eqn.7 to compute the mean frequency. You do not have to ...

1 month ago | 1

| accepted

Scale 2D coordinates with respect to the centroid
@Alberto Acri, Let's call the curves "curve a" and "curve b". You want to map Xa1=194.887 to Xb1=222, and Xa2=320.887 to Xb2=2...

1 month ago | 1