Answered

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

27 days ago | 0

| accepted

Answered

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

27 days ago | 0

| accepted

Answered

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

27 days ago | 0

| accepted

Answered

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

27 days ago | 0

| accepted

Answered

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

27 days ago | 0

Answered

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

27 days ago | 0

| accepted

Answered

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

27 days ago | 0

Answered

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

27 days ago | 0

Answered

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

29 days ago | 0

Answered

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

1 month ago | 1

Answered

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

1 month ago | 0

| accepted

Answered

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

1 month ago | 1

| accepted

Answered

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

1 month ago | 0

Answered

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

1 month ago | 0

Answered

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

1 month ago | 0

Answered

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

1 month ago | 1

| accepted

Answered

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

2 months ago | 0

| accepted

Answered

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

2 months ago | 0

| accepted

Answered

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

2 months ago | 1

| accepted

Answered

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

2 months ago | 0

| accepted

Answered

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

2 months ago | 1

| accepted

Answered

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

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

2 months ago | 0

| accepted

Answered

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

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

2 months ago | 0

Answered

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

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

2 months ago | 0

| accepted

Answered

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

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

2 months ago | 0

Answered

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

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

2 months ago | 0

| accepted

Answered

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

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

2 months ago | 1

Answered

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

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

2 months ago | 0

Answered

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

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

2 months ago | 1

| accepted

Answered

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

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

2 months ago | 0

| accepted