Answered

I have recorded a rgb video and extract g frames vector and calculate it's mean now I want to calculate beats per minute kindly help how can I calculate BPM

In order to estimate frequencies you have to look at the time-variation of your signal, depending on the variability of this you...

I have recorded a rgb video and extract g frames vector and calculate it's mean now I want to calculate beats per minute kindly help how can I calculate BPM

In order to estimate frequencies you have to look at the time-variation of your signal, depending on the variability of this you...

circa 12 ore ago | 0

Answered

How to calculate image resolution (full-width-at-half-maximum) of a point source?

I'd start with some simple models for your image response (2-D Gaussian, sinc^2(x).*sinc(y)^2) and fitted the parameters of thos...

How to calculate image resolution (full-width-at-half-maximum) of a point source?

I'd start with some simple models for your image response (2-D Gaussian, sinc^2(x).*sinc(y)^2) and fitted the parameters of thos...

4 giorni ago | 1

| accepted

Answered

generate random integer number with a specific mean

Have a look at the help and documentation of randi and then try and test some things. Finally have a deep think about what your ...

generate random integer number with a specific mean

Have a look at the help and documentation of randi and then try and test some things. Finally have a deep think about what your ...

8 giorni ago | 0

Answered

How can I save subplot figures together?

Wouldn't this do: print('-depsc2','-painters','Your2subplotfig.eps')

How can I save subplot figures together?

Wouldn't this do: print('-depsc2','-painters','Your2subplotfig.eps')

8 giorni ago | 0

| accepted

Answered

Event Detecting in Event-based ODE

In order to advice the contents of the event-function is necessary. The only thing to point out is that the ode-solvers use nume...

Event Detecting in Event-based ODE

In order to advice the contents of the event-function is necessary. The only thing to point out is that the ode-solvers use nume...

8 giorni ago | 0

| accepted

Answered

Detecting phase difference between two channels

Does something like this extract variations that are related to the breathing-pattern: phi_u = unwrap(atan2(raw_ad_data_sine,ra...

Detecting phase difference between two channels

Does something like this extract variations that are related to the breathing-pattern: phi_u = unwrap(atan2(raw_ad_data_sine,ra...

9 giorni ago | 0

Answered

IGRF model Implementation (Calculating the Partial Derivatives of the Legendre Polynomials)

Have a look at the IGRF implementations available on the file exchange: international-geomagnetic-reference-field-igrf-model, in...

IGRF model Implementation (Calculating the Partial Derivatives of the Legendre Polynomials)

Have a look at the IGRF implementations available on the file exchange: international-geomagnetic-reference-field-igrf-model, in...

12 giorni ago | 0

Answered

Solving an integral equation

For this I think pen-and-paper might be easier than using the symbolic toolbox. Simply differentiate both sides of your definiti...

Solving an integral equation

For this I think pen-and-paper might be easier than using the symbolic toolbox. Simply differentiate both sides of your definiti...

16 giorni ago | 1

| accepted

Answered

save filename by values using a variable

Ok, that should be possible. Someting like this: % First lets get you the date-string-component in your desired format (guessin...

save filename by values using a variable

Ok, that should be possible. Someting like this: % First lets get you the date-string-component in your desired format (guessin...

16 giorni ago | 1

Answered

How can I rotate a vector by a certain amount along a specific plane?

Simply take another vector that lies in your plane, here c (you should understand why we can use c straight away). Then form an ...

How can I rotate a vector by a certain amount along a specific plane?

Simply take another vector that lies in your plane, here c (you should understand why we can use c straight away). Then form an ...

18 giorni ago | 1

Answered

I want my legend just like the pic. 2 variables in 2 columns at the same legend

Solve the problem at the root: legendString = "N = " + string(N) + ", M = " + string(M); ph = plot(x,N.*x'); % Better controll...

I want my legend just like the pic. 2 variables in 2 columns at the same legend

Solve the problem at the root: legendString = "N = " + string(N) + ", M = " + string(M); ph = plot(x,N.*x'); % Better controll...

24 giorni ago | 0

| accepted

Answered

stack multiple 2D images

Unfortunately matlab is a bit weak when it comes to displaying volumetric data. You can use the slice function and use the alpha...

stack multiple 2D images

Unfortunately matlab is a bit weak when it comes to displaying volumetric data. You can use the slice function and use the alpha...

28 giorni ago | 0

Answered

Poor resolution on EPS caused by fill function

As far as I understand post-script does not really support transparency. Therefore when writing figures with transparent objects...

Poor resolution on EPS caused by fill function

As far as I understand post-script does not really support transparency. Therefore when writing figures with transparent objects...

circa un mese ago | 0

Answered

All possible combination based on 2^n

You could use dec2bin: allpossibles = dec2bin(0:(2^n-1)); You'll have to extract the indices from the columns but that should...

All possible combination based on 2^n

You could use dec2bin: allpossibles = dec2bin(0:(2^n-1)); You'll have to extract the indices from the columns but that should...

circa un mese ago | 0

Answered

ODE for the modelling of polymers degradation - products of sums, additional matrix in the function?

It seems to me that you might have your problems when calculating the products of the radicals. Your ODE-function for the couple...

ODE for the modelling of polymers degradation - products of sums, additional matrix in the function?

It seems to me that you might have your problems when calculating the products of the radicals. Your ODE-function for the couple...

circa un mese ago | 0

| accepted

Answered

How to plot actual amplitude on the colorbar using STFT (spectrogram)

If you read the help for spectrogram you'll find this: [...] = spectrogram(...,SPECTRUMTYPE) uses the window scaling ...

How to plot actual amplitude on the colorbar using STFT (spectrogram)

If you read the help for spectrogram you'll find this: [...] = spectrogram(...,SPECTRUMTYPE) uses the window scaling ...

circa un mese ago | 1

| accepted

Answered

Flood map using Mapping toolbox

Well there are a couple of resources you can use. Steve Eddins (sp?) wrote a series of posts on upslope-area, and another on det...

Flood map using Mapping toolbox

Well there are a couple of resources you can use. Steve Eddins (sp?) wrote a series of posts on upslope-area, and another on det...

circa un mese ago | 0

Answered

How does pcolor basically work? Please help me understanding pcolor, color matrix, and colormap work.

If you add a call: colorbar to your tests you will see what levels of C corresponds to what colours in the colormap. That will...

How does pcolor basically work? Please help me understanding pcolor, color matrix, and colormap work.

If you add a call: colorbar to your tests you will see what levels of C corresponds to what colours in the colormap. That will...

circa un mese ago | 0

| accepted

Answered

nonlinear fit with function a*exp((q1+i*q2)*x)/sqrt(x)

This seems like you need to take a standard step from the physicsist's complex representation (which admittedly we often use a b...

nonlinear fit with function a*exp((q1+i*q2)*x)/sqrt(x)

This seems like you need to take a standard step from the physicsist's complex representation (which admittedly we often use a b...

circa un mese ago | 0

| accepted

Answered

[Image Restoration, Wiener Filter] Ifft2 gives NaN complex matrix

Just to get up to speed: that then is F-transformed to: which we can "solve" as: or after multiplying the RHS with the ...

[Image Restoration, Wiener Filter] Ifft2 gives NaN complex matrix

Just to get up to speed: that then is F-transformed to: which we can "solve" as: or after multiplying the RHS with the ...

circa un mese ago | 1

| accepted

Answered

Keeping values of function when solving ODE

As your ODE is written above we have to ask: Why bother? y is deterministically given provided your input parameters and the tim...

Keeping values of function when solving ODE

As your ODE is written above we have to ask: Why bother? y is deterministically given provided your input parameters and the tim...

circa un mese ago | 1

| accepted

Answered

Deconvolution of a combination of Gaussians signal

If you have a signal that is smeared or convolved with some point-spread-function you can to some extent undo that by using eith...

Deconvolution of a combination of Gaussians signal

If you have a signal that is smeared or convolved with some point-spread-function you can to some extent undo that by using eith...

circa un mese ago | 0

Answered

How to solve the second-oder differential equations with two variables using ODE45 or whatever

To the best of my "reading-ability" you seem to have it right in ODE-defining function. From your equations I expect them to be ...

How to solve the second-oder differential equations with two variables using ODE45 or whatever

To the best of my "reading-ability" you seem to have it right in ODE-defining function. From your equations I expect them to be ...

circa 2 mesi ago | 0

| accepted

Answered

Best guess/optimization solution needed

From the information you've given this sounds like a "reasonably" straightforward optimization-problem. You could try something ...

Best guess/optimization solution needed

From the information you've given this sounds like a "reasonably" straightforward optimization-problem. You could try something ...

circa 2 mesi ago | 0

| accepted

Answered

How to solve differential equations involving matrices?

Based off of your description I see no difference betwee solving these 4 x 4 coupled ODEs and solving them as 16 x 1 coupled ODE...

How to solve differential equations involving matrices?

Based off of your description I see no difference betwee solving these 4 x 4 coupled ODEs and solving them as 16 x 1 coupled ODE...

circa 2 mesi ago | 0

Answered

Remove temporal intensity changes in image series

I'd try something like this: ImFiles = dir('*.png'); % well you have your images somehow... roi_c = [11 37 17 51]; for iIm = ...

Remove temporal intensity changes in image series

I'd try something like this: ImFiles = dir('*.png'); % well you have your images somehow... roi_c = [11 37 17 51]; for iIm = ...

circa 2 mesi ago | 0

Answered

Solving coupled ODEBVP using MATLAB

There's an old "proverb" going something like "when in danger when in doubt run around in circles scream and shoot". I vaguely ...

Solving coupled ODEBVP using MATLAB

There's an old "proverb" going something like "when in danger when in doubt run around in circles scream and shoot". I vaguely ...

circa 2 mesi ago | 0

| accepted

Answered

What MATLAB functions are underappreciated?

Just a couple of basic ones: lscov - linear regression when there is a data-covariance-matrix svd (to use together with Tikhon...

What MATLAB functions are underappreciated?

Just a couple of basic ones: lscov - linear regression when there is a data-covariance-matrix svd (to use together with Tikhon...

circa 2 mesi ago | 0

Answered

Getting two components for one frequency in FFT

The fft is a circular Fourier transform, there will always be some spectral leakage from frequencies that are not exactly period...

Getting two components for one frequency in FFT

The fft is a circular Fourier transform, there will always be some spectral leakage from frequencies that are not exactly period...

circa 2 mesi ago | 1

| accepted

Answered

Local macro in STATA?

That is generally a poor programming pattern (read this as: "This is a really poor idea!"). You should aim to write your code su...

Local macro in STATA?

That is generally a poor programming pattern (read this as: "This is a really poor idea!"). You should aim to write your code su...

circa 2 mesi ago | 0