Answered

Undefined function 'int' for input arguments of type 'double'.

Use "trapz" instead of "integral". Best wishes Torsten.

Undefined function 'int' for input arguments of type 'double'.

Use "trapz" instead of "integral". Best wishes Torsten.

17 hours ago | 0

Answered

How do I write this in matlab?

syms x int(1/(cos(2*x))^2) Best wishes Torsten.

How do I write this in matlab?

syms x int(1/(cos(2*x))^2) Best wishes Torsten.

23 hours ago | 0

| accepted

Answered

How to solve an integral with a limit?

syms t L x_squared = (4*sin(1040*pi*t) + cos(3120*pi*t))^2; P = limit(1/(2*L)*int(x_squared,t,-L,L),L,Inf); Best wish...

How to solve an integral with a limit?

syms t L x_squared = (4*sin(1040*pi*t) + cos(3120*pi*t))^2; P = limit(1/(2*L)*int(x_squared,t,-L,L),L,Inf); Best wish...

24 hours ago | 1

Answered

ODE with a cubic root, ODE45 can't solve

Instead of x^p, write sign(x)*(abs(x))^p. Best wishes Torsten.

ODE with a cubic root, ODE45 can't solve

Instead of x^p, write sign(x)*(abs(x))^p. Best wishes Torsten.

4 days ago | 2

| accepted

Answered

what is the 5th column in line data matrix "1/2 B"?

Fifth_column = 1/2*B(:,5); Best wishes Torsten.

what is the 5th column in line data matrix "1/2 B"?

Fifth_column = 1/2*B(:,5); Best wishes Torsten.

4 days ago | 0

Answered

could anybody help me how to solve the error in the following code

Initialize q to a value (e.g. 1) at the beginning of your code. Best wishes Torsten

could anybody help me how to solve the error in the following code

Initialize q to a value (e.g. 1) at the beginning of your code. Best wishes Torsten

5 days ago | 0

Answered

How to solve minimization problem for matrix system

And you are sure that one of the 11*11*11 combinations of possible values for alpha, beta and gamma give you the prescribed valu...

How to solve minimization problem for matrix system

And you are sure that one of the 11*11*11 combinations of possible values for alpha, beta and gamma give you the prescribed valu...

5 days ago | 0

| accepted

Answered

could anyone help me to solve it.

I suspect that your loop over i starts at i=1. This will most probably cause problems evaluating P(1:i-1). Try if the code...

could anyone help me to solve it.

I suspect that your loop over i starts at i=1. This will most probably cause problems evaluating P(1:i-1). Try if the code...

6 days ago | 0

Answered

if i am having a matrix of n rows and m columns which command can be used to display the 3rd row second column value.

disp(A(3,2)) Best wishes Torsten.

if i am having a matrix of n rows and m columns which command can be used to display the 3rd row second column value.

disp(A(3,2)) Best wishes Torsten.

8 days ago | 0

| accepted

Answered

Array operations- vectorization. Error with matrix dimensions.

https://de.mathworks.com/help/matlab/ref/meshgrid.html Best wishes Torsten.

Array operations- vectorization. Error with matrix dimensions.

https://de.mathworks.com/help/matlab/ref/meshgrid.html Best wishes Torsten.

8 days ago | 0

Answered

LINPROG stopped because some objective or constraint matrix coefficients are too large in magnitude

What about using row vectors for lb, ub, f, beq and bineq ? And bineq(2) = Inf is not allowed. Best wishes Torsten.

LINPROG stopped because some objective or constraint matrix coefficients are too large in magnitude

What about using row vectors for lb, ub, f, beq and bineq ? And bineq(2) = Inf is not allowed. Best wishes Torsten.

8 days ago | 1

| accepted

Answered

How to get the mean of a function when the input of the function is a distribution?

I think you will have to go back to the general definition of the mean of a probability distribution. Best wishes Torsten....

How to get the mean of a function when the input of the function is a distribution?

I think you will have to go back to the general definition of the mean of a probability distribution. Best wishes Torsten....

8 days ago | 0

Answered

is it possible to solve this coupled pde equations using pdepe solver?

If you add diffusivity to the mass balance and conductivity to the energy balance of the gas phase, it should be possible to use...

is it possible to solve this coupled pde equations using pdepe solver?

If you add diffusivity to the mass balance and conductivity to the energy balance of the gas phase, it should be possible to use...

11 days ago | 0

Answered

I am given some differential equation of first order and it requires to be solved by Runga Kutta method. please tell me how can i do it?

https://www.google.de/search?ei=zclYWsb-M569gAbX2YzgAw&q=matlab+%26+Runge-Kutta+scheme&oq=matlab+%26+Runge-Kutta+scheme&gs_l=psy...

I am given some differential equation of first order and it requires to be solved by Runga Kutta method. please tell me how can i do it?

https://www.google.de/search?ei=zclYWsb-M569gAbX2YzgAw&q=matlab+%26+Runge-Kutta+scheme&oq=matlab+%26+Runge-Kutta+scheme&gs_l=psy...

11 days ago | 0

Answered

How to make and plot a function with a summation?

Is this the partial Taylor series of a certain function f ? In this case, you could use f=...; n=...; fn = taylor(...

How to make and plot a function with a summation?

Is this the partial Taylor series of a certain function f ? In this case, you could use f=...; n=...; fn = taylor(...

11 days ago | 0

Answered

This code calculate m n h values in For loop, and m n h values are probability values, they must be between 0 and 1, So m n h values must be between 0 and 1 when the for loop is over. But I cant When I run the code, I can not get these values.Can you

Use disp(n(i+1)) disp(m(i+1)) disp(h(i+1)) at the end of the for-loop. Best wishes Torsten.

This code calculate m n h values in For loop, and m n h values are probability values, they must be between 0 and 1, So m n h values must be between 0 and 1 when the for loop is over. But I cant When I run the code, I can not get these values.Can you

Use disp(n(i+1)) disp(m(i+1)) disp(h(i+1)) at the end of the for-loop. Best wishes Torsten.

12 days ago | 1

| accepted

Answered

How to solve an implicit equation involving another MATLAB function with symbolics?

Use "fzero" to solve f=@(T013) T013 - (T02 * (1 + (fprOF^((heat_property(T013,'gamma')-1)/heat_property(T013,'gamma')) - 1...

How to solve an implicit equation involving another MATLAB function with symbolics?

Use "fzero" to solve f=@(T013) T013 - (T02 * (1 + (fprOF^((heat_property(T013,'gamma')-1)/heat_property(T013,'gamma')) - 1...

12 days ago | 1

| accepted

Answered

i need to solve F'''+FF''-(F')^2-(M^2)F'=0 with bvp,s are F(0)=3,F'(0)=-1 and F(infinity)=0

Use bvp4c. Best wishes Torsten.

i need to solve F'''+FF''-(F')^2-(M^2)F'=0 with bvp,s are F(0)=3,F'(0)=-1 and F(infinity)=0

Use bvp4c. Best wishes Torsten.

12 days ago | 0

Answered

Convolution of two symfuns

For comparison: Result is 29*t^2-165*t+33408*(2*kend-1)+420 with kend = 100 in this case. kend must be an even in...

Convolution of two symfuns

For comparison: Result is 29*t^2-165*t+33408*(2*kend-1)+420 with kend = 100 in this case. kend must be an even in...

13 days ago | 0

Answered

Help with plotting hourly data

https://de.mathworks.com/matlabcentral/fileexchange/1673-cumulative-mean Best wishes Torsten.

Help with plotting hourly data

https://de.mathworks.com/matlabcentral/fileexchange/1673-cumulative-mean Best wishes Torsten.

14 days ago | 0

Answered

Can Matlab row reduce this matrix?

https://de.mathworks.com/help/symbolic/rref.html Best wishes Torsten.

Can Matlab row reduce this matrix?

https://de.mathworks.com/help/symbolic/rref.html Best wishes Torsten.

14 days ago | 0

Answered

Can you please share a code for random forest algorithm ?

https://www.google.de/search?ei=fpJUWumqI4LTkwXivaawAQ&q=random+forest+algorithm+%26+matlab&oq=random+forest+algorithm+%26+matla...

Can you please share a code for random forest algorithm ?

https://www.google.de/search?ei=fpJUWumqI4LTkwXivaawAQ&q=random+forest+algorithm+%26+matlab&oq=random+forest+algorithm+%26+matla...

14 days ago | 1

Answered

How to use correctly bvp4c / bvp5c

1. Build vectors r1 and r2 in the calling program which are of the same length as f1 and f2 and which contain the values of ...

How to use correctly bvp4c / bvp5c

1. Build vectors r1 and r2 in the calling program which are of the same length as f1 and f2 and which contain the values of ...

14 days ago | 0

Answered

Numerical solving second order differential equation

b = 0.19; a = 0.072; beta = 0.72; Pr = 0.72; c = beta/Pr*a^(4/3); xspan = [0.01 100]; g40 = [(xspan(1)^(...

Numerical solving second order differential equation

b = 0.19; a = 0.072; beta = 0.72; Pr = 0.72; c = beta/Pr*a^(4/3); xspan = [0.01 100]; g40 = [(xspan(1)^(...

15 days ago | 1

Answered

Solving second order ODE with ode45

Since you start at x=0, you divide by zero in the line dy_le_dx(2)=(1/x)*(x*y(2)-(x^2-n^2)); Best wishes Torsten.

Solving second order ODE with ode45

Since you start at x=0, you divide by zero in the line dy_le_dx(2)=(1/x)*(x*y(2)-(x^2-n^2)); Best wishes Torsten.

18 days ago | 0

| accepted

Answered

Actually, this code fails with an error: Error using zeros Size inputs must be integers. on this line: p=zeros(1,n); The reason is obvious because n is 2.1782 (approximately)

n = fix((t1-t0)/h); Best wishes Torsten.

Actually, this code fails with an error: Error using zeros Size inputs must be integers. on this line: p=zeros(1,n); The reason is obvious because n is 2.1782 (approximately)

n = fix((t1-t0)/h); Best wishes Torsten.

18 days ago | 0

Answered

Hello lovely people, i have been able to write this code which corresponds to the graphs in literature. I however wanna make a second graph of R2,R3,R6 vs R1. How do i make the plot command? Pls check the images attached.

In the run file, after the line [t,x]=ode15s(@COMPREAC,tspan, C0); recalculate R1,R2,R3 and R6 from x in a for-loop: ...

Hello lovely people, i have been able to write this code which corresponds to the graphs in literature. I however wanna make a second graph of R2,R3,R6 vs R1. How do i make the plot command? Pls check the images attached.

In the run file, after the line [t,x]=ode15s(@COMPREAC,tspan, C0); recalculate R1,R2,R3 and R6 from x in a for-loop: ...

18 days ago | 2

| accepted

Answered

Solving for Coefficient in Nonlinear 2nd-Order Differential Equation

Use "fzero" or "fsolve" to solve the equation (integral_{0}^{inf} y(a,r)^2 dr) - 1 = 0 for a. To this end, in the...

Solving for Coefficient in Nonlinear 2nd-Order Differential Equation

Use "fzero" or "fsolve" to solve the equation (integral_{0}^{inf} y(a,r)^2 dr) - 1 = 0 for a. To this end, in the...

18 days ago | 2