A répondu

Time-dependent system ODE with initial half-sine pulse shows incorrect results

@Mathew Smith, I would not use cumtrapz() or (worse) nested calls to cumtrapz(cumtrapz()). I don;t understand the right hand s...

Time-dependent system ODE with initial half-sine pulse shows incorrect results

@Mathew Smith, I would not use cumtrapz() or (worse) nested calls to cumtrapz(cumtrapz()). I don;t understand the right hand s...

3 mois il y a | 0

A répondu

maps contourf, griddatat or scatterdata

@Mohamed, I assume you have data at the specific points shown on the Matlab plot. If that is true, then the Matlab plot looks v...

maps contourf, griddatat or scatterdata

@Mohamed, I assume you have data at the specific points shown on the Matlab plot. If that is true, then the Matlab plot looks v...

3 mois il y a | 1

| A accepté

A répondu

How do you repeat a QRS signal?

@collegestudent, If you want to use frequency analysis to examine the heart rate frequencies, you will need a lot of beats. 30...

How do you repeat a QRS signal?

@collegestudent, If you want to use frequency analysis to examine the heart rate frequencies, you will need a lot of beats. 30...

3 mois il y a | 1

| A accepté

A répondu

Generates normals with multiple three-point coordinates

@Chenglin Li, [edit: I simplified the calculation of the normalized normal vectors] I ran your code. It runs without error. I...

Generates normals with multiple three-point coordinates

@Chenglin Li, [edit: I simplified the calculation of the normalized normal vectors] I ran your code. It runs without error. I...

3 mois il y a | 0

| A accepté

A répondu

Detection of the carrier's audible announcement

@Matyas Rychetsky, I do not know of anything better than the voiceActivityDetector. The examples here are very good, in my opi...

Detection of the carrier's audible announcement

@Matyas Rychetsky, I do not know of anything better than the voiceActivityDetector. The examples here are very good, in my opi...

3 mois il y a | 0

A répondu

Can anyone tell me why this error is occurring and how to solve it? Thank you.

@Rafia Noshin, please include a sample ecg data file so we can run the code. What error do you get? When I run that line, I get...

Can anyone tell me why this error is occurring and how to solve it? Thank you.

@Rafia Noshin, please include a sample ecg data file so we can run the code. What error do you get? When I run that line, I get...

3 mois il y a | 0

A répondu

I need to create a 3D surface plot for a multiple linear regression

@Anna, Please attach sill as a text file containing 3 columns of data and no headers. Please format your code as code (by high...

I need to create a 3D surface plot for a multiple linear regression

@Anna, Please attach sill as a text file containing 3 columns of data and no headers. Please format your code as code (by high...

3 mois il y a | 0

A répondu

Plotting of a surface

@Andrei, My understanding is that you want to create a potential function which is the product of a radial component and an ang...

Plotting of a surface

@Andrei, My understanding is that you want to create a potential function which is the product of a radial component and an ang...

3 mois il y a | 1

| A accepté

A répondu

Shifting plotted points from green to red

@Jared Dube, to plot a line with continuously variable color: t=0:100; x=-500*cos(2*pi*t/100); y=500*(x/500).^2+t; hsv=[lins...

Shifting plotted points from green to red

@Jared Dube, to plot a line with continuously variable color: t=0:100; x=-500*cos(2*pi*t/100); y=500*(x/500).^2+t; hsv=[lins...

3 mois il y a | 1

A répondu

Shifting plotted points from green to red

@Jared Dube, [edit: added 'filled' to fill in the points] [edit 2: change from red -> green to green -> red, as originally req...

Shifting plotted points from green to red

@Jared Dube, [edit: added 'filled' to fill in the points] [edit 2: change from red -> green to green -> red, as originally req...

3 mois il y a | 0

| A accepté

A répondu

How to fit the cdf to a function?

@Hozifa, [edit: correct spelling and grammar] I put the data in a text file so it is not in your code. It appears that the da...

How to fit the cdf to a function?

@Hozifa, [edit: correct spelling and grammar] I put the data in a text file so it is not in your code. It appears that the da...

3 mois il y a | 0

| A accepté

A répondu

Creating a file from different-sized files.

@Nada, Line_2.mat contains several variables. Let's assume you are interested in the one called Data. To append the data in T...

Creating a file from different-sized files.

@Nada, Line_2.mat contains several variables. Let's assume you are interested in the one called Data. To append the data in T...

3 mois il y a | 0

| A accepté

A répondu

Plotting Data Points with Lines to Indicate Unchanging Conditions Over Time

@John, stairs(x,y) I use it for heart rate data all the time, since, once you have a rate estimate from detecting the second R...

Plotting Data Points with Lines to Indicate Unchanging Conditions Over Time

@John, stairs(x,y) I use it for heart rate data all the time, since, once you have a rate estimate from detecting the second R...

3 mois il y a | 0

| A accepté

A répondu

Stress Strain calculation in matlab

@Ilksen Altuntas, Good advice from @the cyclist, as always. And from @Cameron also. If you just have a text file with 2 colum...

Stress Strain calculation in matlab

@Ilksen Altuntas, Good advice from @the cyclist, as always. And from @Cameron also. If you just have a text file with 2 colum...

3 mois il y a | 0

A répondu

Polyfit function is returning a partial line of best fit

@Gregory Lang, Since you did not include a .mat file with the data being fitted (sbchl, sbb555, gichl, gib555), others cannot r...

Polyfit function is returning a partial line of best fit

@Gregory Lang, Since you did not include a .mat file with the data being fitted (sbchl, sbb555, gichl, gib555), others cannot r...

3 mois il y a | 0

| A accepté

A répondu

Are there any matrix balancing/scaling function in matab for complex rectagular matrices?

@Kalasagarreddi Kottakota, [edit : correct spelling] You say you want to invert a 45x2 matrix. As you know, a non-square matri...

Are there any matrix balancing/scaling function in matab for complex rectagular matrices?

@Kalasagarreddi Kottakota, [edit : correct spelling] You say you want to invert a 45x2 matrix. As you know, a non-square matri...

3 mois il y a | 0

A répondu

How to check the proportionaly of columns of a complex rectagular matrix?

@Kalasagarreddi Kottakota The correlation is a measure of the proportionality of two vectors. When the vectors are complex, the...

How to check the proportionaly of columns of a complex rectagular matrix?

@Kalasagarreddi Kottakota The correlation is a measure of the proportionality of two vectors. When the vectors are complex, the...

3 mois il y a | 0

A répondu

2D Acoustic Source Localization with a 1D Array and MVDR

@Jad El Harake, I think this question is a matter for investigation, and that you will have to experiment. The two dimensions ...

2D Acoustic Source Localization with a 1D Array and MVDR

@Jad El Harake, I think this question is a matter for investigation, and that you will have to experiment. The two dimensions ...

3 mois il y a | 0

A répondu

How to mark curve intersections on a graph

@Kristina, [edit: Correcting my spelling mistakes. No changes to the code.] The reason that this is not as easy a problem as ...

How to mark curve intersections on a graph

@Kristina, [edit: Correcting my spelling mistakes. No changes to the code.] The reason that this is not as easy a problem as ...

3 mois il y a | 1

A répondu

Equally distributed multidimensional random values with boundaries - how to generate?

@Karol, my new understanding is that you want to find a uniformly distributed random point in a 3D rectangle. The bounds of the ...

Equally distributed multidimensional random values with boundaries - how to generate?

@Karol, my new understanding is that you want to find a uniformly distributed random point in a 3D rectangle. The bounds of the ...

3 mois il y a | 0

| A accepté

A répondu

how can i show up to 6 periods of this signal only, while being able to see the top and bottom of the wave?

@Thabo Dube, Nice answer from @Les Beckham. Or, if you simply want to change the x-axis range, you can do xlim([0 0.01]); a...

how can i show up to 6 periods of this signal only, while being able to see the top and bottom of the wave?

@Thabo Dube, Nice answer from @Les Beckham. Or, if you simply want to change the x-axis range, you can do xlim([0 0.01]); a...

3 mois il y a | 1

| A accepté

A répondu

How to solve an equation with arrays

@Din N, The commands b=0.01:0.1:500; syms k_eff k_eff=sym('k_eff',length(b)); cause Matlab to try to create a sybolic arr...

How to solve an equation with arrays

@Din N, The commands b=0.01:0.1:500; syms k_eff k_eff=sym('k_eff',length(b)); cause Matlab to try to create a sybolic arr...

3 mois il y a | 0

A répondu

A selection of a time window in order to calculate the fft of my filtered signal

@Justine Jehlen, Y=fft(y(825:932)); returns the fft of signal y, from sample 825 through 932. That seems too easy, so perha...

A selection of a time window in order to calculate the fft of my filtered signal

@Justine Jehlen, Y=fft(y(825:932)); returns the fft of signal y, from sample 825 through 932. That seems too easy, so perha...

4 mois il y a | 0

A répondu

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

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

4 mois il y a | 0

A répondu

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

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

4 mois il y a | 1

| A accepté

A répondu

Problems reading xls files.

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

Problems reading xls files.

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

4 mois il y a | 0

| A accepté

A répondu

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

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

4 mois il y a | 0

| A accepté

A répondu

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

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

4 mois il y a | 1

| A accepté

A répondu

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

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

4 mois il y a | 0

| A accepté

A répondu

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

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

4 mois il y a | 1

| A accepté