Community Profile

# Torsten

1,606 total contributions since 2013

View details...

Contributions in
View by

Undefined function 'int' for input arguments of type 'double'.
Use "trapz" instead of "integral". Best wishes Torsten.

17 hours ago | 0

How do I write this in matlab?
syms x int(1/(cos(2*x))^2) Best wishes Torsten.

23 hours ago | 0

| accepted

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

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

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

Expanding a function in power series
help taylor Best wishes Torsten.

5 days ago | 0

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

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

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

Array operations- vectorization. Error with matrix dimensions.
https://de.mathworks.com/help/matlab/ref/meshgrid.html Best wishes Torsten.

8 days ago | 0

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

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

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

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?

11 days ago | 0

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

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

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

Help with plotting hourly data
https://de.mathworks.com/matlabcentral/fileexchange/1673-cumulative-mean Best wishes Torsten.

14 days ago | 0

Can Matlab row reduce this matrix?
https://de.mathworks.com/help/symbolic/rref.html Best wishes Torsten.

14 days ago | 0

Can you please share a code for random forest algorithm ?

14 days ago | 1

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

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

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

Solving a 4th degree energy balance
help roots Best wishes Torsten.

18 days ago | 1

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