Answered

Bivariate Normal Distribution different for expression and mvnpdf()

Hello Aishwarya, The problem here is that the array x is 2x31 and does not have every possible combination of an element of X1 ...

Bivariate Normal Distribution different for expression and mvnpdf()

Hello Aishwarya, The problem here is that the array x is 2x31 and does not have every possible combination of an element of X1 ...

3 dagar ago | 2

| accepted

Answered

How do you find the approximate interval that displays the solution?

Hello Isabel, I believe the idea here is that when lambda is large enough, the expression for Tb gets increasingly close to Tb_...

How do you find the approximate interval that displays the solution?

Hello Isabel, I believe the idea here is that when lambda is large enough, the expression for Tb gets increasingly close to Tb_...

4 dagar ago | 0

Answered

ODE45 to solve a system of two coupled 2nd order ODEs

Hi Ricardo, I am inferring that you have the following system with fixed points S: S---k1---M---k2---M---k1---S Then eqn 1 is...

ODE45 to solve a system of two coupled 2nd order ODEs

Hi Ricardo, I am inferring that you have the following system with fixed points S: S---k1---M---k2---M---k1---S Then eqn 1 is...

17 dagar ago | 0

| accepted

Answered

How to element wise exponential of a matrix

Hi Titas, dy = Columns 1 through 10 15.7800 31.5600 47.3400 63.1200 78.9000 94.6800 110.4600 126.2400 142.0200...

How to element wise exponential of a matrix

Hi Titas, dy = Columns 1 through 10 15.7800 31.5600 47.3400 63.1200 78.9000 94.6800 110.4600 126.2400 142.0200...

18 dagar ago | 1

| accepted

Answered

Anttena Paterns radiation patterns

Hello MT, The basic issue is setting phi_3db to degrees, but there may also be a problem with the basic definition of phi_3db (...

Anttena Paterns radiation patterns

Hello MT, The basic issue is setting phi_3db to degrees, but there may also be a problem with the basic definition of phi_3db (...

18 dagar ago | 0

| accepted

Answered

"Fminunc cannot continue" Error with gamma function

Hi Yasin, You can use the gammaln function which is tailor made for this situation.

"Fminunc cannot continue" Error with gamma function

Hi Yasin, You can use the gammaln function which is tailor made for this situation.

27 dagar ago | 1

| accepted

Answered

How can I find a p-value when dealing with a weighted sum of chi-square distributions?

HI Michael, Since this is a weighted sum instead of a weighted mixture (as I erroneously assumed), the calculation will be alon...

How can I find a p-value when dealing with a weighted sum of chi-square distributions?

HI Michael, Since this is a weighted sum instead of a weighted mixture (as I erroneously assumed), the calculation will be alon...

30 dagar ago | 0

Answered

Interpreting xcorr results compared to corrcoef

Hi Jonathan, For the input column vectors, corrcoeff subtracts the mean off of each one and normalizes each to be a unit vector...

Interpreting xcorr results compared to corrcoef

Hi Jonathan, For the input column vectors, corrcoeff subtracts the mean off of each one and normalizes each to be a unit vector...

ungefär en månad ago | 1

| accepted

Answered

How to generate matrices that satisfies constraints on sum of row elements and sum of column elements?

Hi sharadhi, Here is an example for 3x3, where all the row and column sums are 100 (looks like you edited the original question...

How to generate matrices that satisfies constraints on sum of row elements and sum of column elements?

Hi sharadhi, Here is an example for 3x3, where all the row and column sums are 100 (looks like you edited the original question...

ungefär en månad ago | 0

Answered

Cumulative distribution function of a function of a random variable

Hi Franziska, a = 1.2; x = .2 y = a*(1+x)*(2/(1+ (1+x)^(1/(a-1))))^(a-1) xx = (y/a)/(2-(y/a)^(1/(a-1)))^(a-1) -1 % ...

Cumulative distribution function of a function of a random variable

Hi Franziska, a = 1.2; x = .2 y = a*(1+x)*(2/(1+ (1+x)^(1/(a-1))))^(a-1) xx = (y/a)/(2-(y/a)^(1/(a-1)))^(a-1) -1 % ...

ungefär en månad ago | 0

| accepted

Answered

FFT interpolation using zero-padding and the Chirp Z-Transform for a single tone sinusoid

Hi Matt, I made one minor change at the beginning of your code, replacing the first four lines with M = 100; m = linspace(0,1...

FFT interpolation using zero-padding and the Chirp Z-Transform for a single tone sinusoid

Hi Matt, I made one minor change at the beginning of your code, replacing the first four lines with M = 100; m = linspace(0,1...

ungefär en månad ago | 0

| accepted

Answered

Fourier transform of table signal

Hello fima, It’s true that the amplitude is off, but frequency is a much more serious issue. The time domain plot shows that t...

Fourier transform of table signal

Hello fima, It’s true that the amplitude is off, but frequency is a much more serious issue. The time domain plot shows that t...

ungefär en månad ago | 0

Answered

fourier transform of exp

HI Hadimargo, A few modifications are necessary to make this work out. oo First, in the time domain the exponential function i...

fourier transform of exp

HI Hadimargo, A few modifications are necessary to make this work out. oo First, in the time domain the exponential function i...

ungefär en månad ago | 1

| accepted

Answered

Generate random numbers from a mixture distribution

Hi Thomas. I presume you mean something like the following. A uniform random variable is used to create an index that picks fr...

Generate random numbers from a mixture distribution

Hi Thomas. I presume you mean something like the following. A uniform random variable is used to create an index that picks fr...

ungefär en månad ago | 2

Answered

How to rotate the plot attached(Truncated Pyramid) to make its sides parallel to its Axis.

Hi adam, two lines become y(m)=R*sind(n+45); x(m)=R*cosd(n+45);

How to rotate the plot attached(Truncated Pyramid) to make its sides parallel to its Axis.

Hi adam, two lines become y(m)=R*sind(n+45); x(m)=R*cosd(n+45);

ungefär 2 månader ago | 0

| accepted

Answered

Trouble with MATLAB Triple Integral

Hi Goerge, The problem with the func([x,y,z]) approach is that there is too much expectation that [x,y,x] is 1x3. Once the int...

Trouble with MATLAB Triple Integral

Hi Goerge, The problem with the func([x,y,z]) approach is that there is too much expectation that [x,y,x] is 1x3. Once the int...

ungefär 2 månader ago | 0

| accepted

Answered

Linear interpolation with multiple values for each point

Hi Justin, If the problem is what I think it is, with d and e known, linear interpolation between o and p determined by a<d<b ...

Linear interpolation with multiple values for each point

Hi Justin, If the problem is what I think it is, with d and e known, linear interpolation between o and p determined by a<d<b ...

ungefär 2 månader ago | 0

Answered

Problem with the Color Bar

Hi Hans, try colormap(jet) colorbar by default this has 64 color levels (as does the default colormap, 'parula') and looks m...

Problem with the Color Bar

Hi Hans, try colormap(jet) colorbar by default this has 64 color levels (as does the default colormap, 'parula') and looks m...

ungefär 2 månader ago | 1

| accepted

Answered

Question about fft2(2D Fourier Transform) of a Gaussian function

Hi Zhu Li, A couple of things are going on here. First, there is the checkerboard pattern in the angle plot. I added an extra ...

Question about fft2(2D Fourier Transform) of a Gaussian function

Hi Zhu Li, A couple of things are going on here. First, there is the checkerboard pattern in the angle plot. I added an extra ...

ungefär 2 månader ago | 1

| accepted

Answered

The power sum of all frequencies seems that the half amount of the middle frequency power is not added. But the algorithm accords with the Parseval theorem. why?

Hi H^2, It helps that you are doing this for four frequencies rather than some crazy huge number of them. x = 1:4; N = length...

The power sum of all frequencies seems that the half amount of the middle frequency power is not added. But the algorithm accords with the Parseval theorem. why?

Hi H^2, It helps that you are doing this for four frequencies rather than some crazy huge number of them. x = 1:4; N = length...

2 månader ago | 0

| accepted

Answered

Problem with symbolic Fourier Transform

Hello Halil, For the delta function, delta(x-x0) = |a| delta(a(x-x0)) so with a = 2*pi, both versions are correct. quick lo...

Problem with symbolic Fourier Transform

Hello Halil, For the delta function, delta(x-x0) = |a| delta(a(x-x0)) so with a = 2*pi, both versions are correct. quick lo...

2 månader ago | 1

Answered

How does function std process complex numbers

Hi JFz, First of all, for a matrix the std is calculated independently for each column, as is true of many Matlab functions. F...

How does function std process complex numbers

Hi JFz, First of all, for a matrix the std is calculated independently for each column, as is true of many Matlab functions. F...

2 månader ago | 1

| accepted

Answered

Simple squaring of expression

HI Wesley, syms a syms b syms c syms d syms e f = expand((1*a+2*b+3*c+4*d+5*e-8)*(1*a+2*b+3*c+4*d+5*e-8))

Simple squaring of expression

HI Wesley, syms a syms b syms c syms d syms e f = expand((1*a+2*b+3*c+4*d+5*e-8)*(1*a+2*b+3*c+4*d+5*e-8))

2 månader ago | 0

| accepted

Answered

How to solve this equation which contains complex number, bessel equation and its derivative?

Hi bohan shen, The first six roots are shown below. First, since J1 is odd and J0,J2 are even, if z is a root then so is -z. ...

How to solve this equation which contains complex number, bessel equation and its derivative?

Hi bohan shen, The first six roots are shown below. First, since J1 is odd and J0,J2 are even, if z is a root then so is -z. ...

2 månader ago | 1

| accepted

Answered

How do I assign matrix of strings to matrix of numbers?

Hi [A,B,C,D,E,F] = deal(5,8,2,9,2,1) although for a large number of variables, giving each its own name is not a winning strate...

How do I assign matrix of strings to matrix of numbers?

Hi [A,B,C,D,E,F] = deal(5,8,2,9,2,1) although for a large number of variables, giving each its own name is not a winning strate...

2 månader ago | 0

| accepted

Answered

Finding and plotting radial component in vector field

Hi djr, nc = 14; nr = 14; % Create grid [x,y] = meshgrid(0:dx:(nc-1)*dx,0:dy:(nr-1)*dy); % Plot vectors (rows and colomns ne...

Finding and plotting radial component in vector field

Hi djr, nc = 14; nr = 14; % Create grid [x,y] = meshgrid(0:dx:(nc-1)*dx,0:dy:(nr-1)*dy); % Plot vectors (rows and colomns ne...

2 månader ago | 0

| accepted

Answered

How to solve first-order nonlinear differential equation where the solution is coupled with an integral?

Hi Califfo; This may be in line with what you want. At least it's changing size It's based on the idea that you know not onl...

How to solve first-order nonlinear differential equation where the solution is coupled with an integral?

Hi Califfo; This may be in line with what you want. At least it's changing size It's based on the idea that you know not onl...

3 månader ago | 2

| accepted

Answered

Errors when solving equation numerically with a Heaviside Theta

Hi A7, The code below finds a solution. Instead of looking for phi0 directly it uses the variable beta = 1/(lambda*phi0) Sin...

Errors when solving equation numerically with a Heaviside Theta

Hi A7, The code below finds a solution. Instead of looking for phi0 directly it uses the variable beta = 1/(lambda*phi0) Sin...

3 månader ago | 0

Answered

Randomly select an element from a vector satisfying a condition

Relative speeds are going to depend on the length of X and the value N that the elements have to be greater than, (2 in the exam...

Randomly select an element from a vector satisfying a condition

Relative speeds are going to depend on the length of X and the value N that the elements have to be greater than, (2 in the exam...

3 månader ago | 0

Answered

Matrix grouping result of combinations

Hello Joao, Maybe I need to write better blurbs. Here is a general solution for even n, with a verification check that shows t...

Matrix grouping result of combinations

Hello Joao, Maybe I need to write better blurbs. Here is a general solution for even n, with a verification check that shows t...

3 månader ago | 0