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

8 years ago | 2

| accepted

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

8 years ago | 0

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

8 years ago | 0

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

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

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

8 years 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)^(...

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

8 years ago | 0

| accepted

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

8 years ago | 1

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

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

8 years ago | 2

Answered
how to add colmun to vector
help horzcat Best wishes Torsten.

8 years ago | 0

Answered
select 2 rows in a (n,m) matrix
rowi = A(i,:); selects the i'th row from the matrix A. Does this help ? Best wishes Torsten.

8 years ago | 0

Answered
How to resolve error"index exceeds matrix dimensions."
a,b,c and d are scalars ; so sum(a(1:N2)),sum(b(1:N2)), sum(c(1:N3)) and sum(d(1:N3)) won't work for values of N2 and N3 greater...

8 years ago | 0

Answered
What is wrong with the code?
chr = 'The fast black dog'; match = ["a","e","i","o","u"]; newchr = erase(chr,match) Best wishes Torsten.

8 years ago | 0

| accepted

Answered
Question regarding linprog formulation
f=[-out1(j0), -out2(j0), -out3(j0), 0,0,0,0,0]; Best wishes Torsten.

8 years ago | 1

| accepted

Answered
Solve for a normaliztion constant in MATLAB
Does it work if you simply set prod = y*z*N^2; ? By the way: The result will be N = +/- 1/sqrt(int(y*z,x,0,2*pi...

8 years ago | 1

Answered
Using solve to find unknown Constant in equation
Csolve = solve(C+pi*cos(a)+pi*1i*sin(a)-C*exp(1i*a)*cos(a)-C*exp(1i*a)*1i*sin(a)==0,C) Best wishes Torsten.

8 years ago | 1

| accepted

Answered
Use ODE solver with system of ODEs with neumann BCs
Discretization of flux boundary conditions in the context of MOL is part of every textbook on the numerical treatment of partial...

8 years ago | 1

| accepted

Answered
R[1;-1] how i write the program in matlab for random selection between 1 and -1
x = rand; if x <= 0.5 number = 1; else number = -1; end Best wishes Torsten.

8 years ago | 2

Answered
How do i deal with "not enough argument and Feval, ODE15l error?
What if you use "exp" instead of "EXP" ? Best wishes Torsten.

8 years ago | 0

| accepted

Answered
How can I determine if two eigenvectors form an open or closed subspace?
http://www.math.colostate.edu/~pauld/M645/BasicHS.pdf Best wishes Torsten.

8 years ago | 0

| accepted

Answered
3= 2*(e^x - e^-x)
Substitute e^x = y. This leads to y - 1/y = 3/2 or y^2 - 3/2*y - 1 = 0. Thus y = 3/4 + sqrt(...

8 years ago | 1

Answered
Multiply matrix with variables
syms COSFA SINFA COSFR SINFR COSF SINF RA=[COSFA 0 SINFA; 0 1 0; -SINFA 0 COSFA]; RR=[COSFR -SINFR 0; SINFR CONFR 0;...

8 years ago | 0

| accepted

Answered
Fitting with coupled differential equations
So I suspect that "pulses" is an (nx2) array with the first column being "time" and the second column being values between 0 and...

8 years ago | 0

| accepted

Answered
How do I write the function (d^2 θ)/(dt^2 )+sin⁡((θ(t))=0 in Matlab?
syms y(t) Dy = diff(y,t); taylor(dsolve(diff(y,t,2)+sin(y)==0,[y(0)==pi/12,Dy(0)==0]),t,0,'Order',4) Best wishes T...

8 years ago | 0

Answered
How do i plot the function v(t) below :
fplot(@(t)5*exp(2*t).*sin(1000*pi*t),[-1 1]); Best wishes Torsten.

8 years ago | 1

Answered
Why do I get this function warning (Function behaves unexpectedly on array inputs)
function s = camdisp(t) w = 2*(pi/5); for i=1:numel(t) if t(i)>=0 && t(i)<80 s(i) = ((10.*1.25)*((t(i)...

8 years ago | 0

| accepted

Load more