Answered
matlab problem plotting in for loop-all values are converging to zero
Try "hold on" before the for-loop and use plot(xmatrix(i+1),ymatrix(i+1),'-gs') inside the loop. Best wishes Torsten.

9 years ago | 0

Answered
solving coupled differential equations.
Use one of the solvers from the ODE-suite to solve: https://de.mathworks.com/help/matlab/math/choose-an-ode-solver.html Be...

9 years ago | 1

| accepted

Answered
What modifications do I need to make in the following codes for solving the boundary value problem similar to the Blasius equation using Shooting method with R-K 4 numerical analysis
Use MATLAB's "bvp4c" instead of a code that you don't understand. Best wishes Torsten.

9 years ago | 1

| accepted

Answered
Random positive numbers with constant sum
https://de.mathworks.com/matlabcentral/fileexchange/9700-random-vectors-with-fixed-sum Best wishes Torsten.

9 years ago | 1

Answered
Struggling with equation and FOR loops
Ai=0.6895; r=[1 2 3 4 5]; N=[0.3256 0.2254 0.1300 0.07684]; for i=1:numel(r) for j = 1:numel(N) delta(i...

9 years ago | 0

Answered
How could I find the solution of a system of three partial differential equations using MATLAB?
There are no adequate tools in MATLAB to solve your equations directly. You will have to discretize the first equation in spa...

9 years ago | 0

Answered
FInd root of f(x) - v = 0 where v is a vector
If you are supposed to use "fzero", call it in a loop to solve f(xi)-Vi=0 for i=1,...,length(V). Best wishes Torsten.

9 years ago | 1

| accepted

Answered
How to find a global minimum?
https://de.mathworks.com/help/gads/how-globalsearch-and-multistart-work.html Best wishes Torsten.

9 years ago | 2

| accepted

Answered
How to plot a differential equation?
ezplot(NSol,[0,4]); Best wishes Torsten.

9 years ago | 1

Answered
Background Estimation for a complex vector
https://de.mathworks.com/help/matlab/ref/movmean.html ? Best wishes Torsten.

9 years ago | 0

Answered
Can I set a time limit to fsolve, or any other function minimising tool?
Use "clock" at the start of your calculations and within the routine where "fsolve" evaluates your functions. Stop if the differ...

9 years ago | 0

Answered
Generating Sample as per PDF
https://de.mathworks.com/help/stats/wblrnd.html Best wishes Torsten.

9 years ago | 0

| accepted

Answered
Can matlab solve this simple factorial equation?
syms x1 x2 eqn = factorial(x2) == factorial(x1); S = solve(eqn, x1) Best wishes Torsten.

9 years ago | 0

Answered
My runge kutta method isnt working
In your call to "dydt3", "Y" is a scalar (namely 0), but "dydt3" expects "Y" to be a vector of length 3. Best wishes Torst...

9 years ago | 0

Answered
How to solve a system of symbolic differential equations with DSOLVE with an unknown number of equations?
Since an analytical solution is out of reach, use "ode15s" instead of "dsolve". Best wishes Torsten.

9 years ago | 0

Answered
Bonjour, j'ai deux fonctions tan(kL)=2pk/(k^2-p^2) k et p sont deja deux fonctions k=sqrt(2m(V-E)/h^2) et p=sqrt(2mE/h^2) et L,m et V sont des constantes et je veux sortir la valeur de l'énergie E quelqu'un peut m'aider
Use "fzero" for the function f=@(E)tan(sqrt(2*m*(V-E)/h^2)*L)-2*sqrt(2*m*E/h^2)*sqrt(2*m*(V-E)/h^2)/(2*m*(V-E)/h^2-2*m*E/h^...

9 years ago | 0

Answered
Is it possible to specify length of an array that is a result from ode15s?
If you define "zspan" as a vector with more than two elements, ode15s outputs the solution exactly at the z-values specified in ...

9 years ago | 0

| accepted

Answered
How can we minimize the maximum of absolute differences in matlab?
https://de.mathworks.com/help/optim/ug/fminimax.html Best wishes Torsten.

9 years ago | 0

| accepted

Answered
Summing values in a loop
You mean for ii = 1:10 iiTerm(ii) = (((-1).^(ii-1)).*(((pi/4).^(2.*(ii-1))))./(factorial(2.*(ii-1)))); end iiSu...

9 years ago | 0

| accepted

Answered
Plotting iterations of summations using a for loop.
x = -pi:0.1:pi; n = 5; sum = 0; for k = 0:n kTerm = ((-1).^(k)).*((x.^(2.*k)))./(factorial(2.*k)); sum = su...

9 years ago | 1

| accepted

Answered
Solve the initial value problem (xlogx)y'=2y, y(2)=(log2)^2
syms y(x) eqn = x*log(x)*diff(y,x)==2*y; cond = y(2)==log(2)^2; ysol(x) = dsolve(eqn,cond) Best wishes Torsten....

9 years ago | 0

Answered
How to solve a logarithmic equation?
X = exp(lambertw(2/7)) Plot the function and you will see that there is no root for 0<X<1. Best wishes Torsten.

9 years ago | 2

Answered
From Scientific Calculator [Solve] to matlab
syms x eqn = cos(x)^2*cos(3*x)^2-0.5 == 0; sol = solve(eqn) or syms x eqn = cos(x)^2*cos(3*x)^2-0.5 == 0; ...

9 years ago | 0

Answered
how to solve 4 state equation ?
syms a(t) b(t) c(t) d(t) C1 R C R1 L1 L2 u eqns = [diff(a,t)==d/C1 , diff(b,t)=-b/(R*C) , diff(c,t)=-R1*c/L1+u/L1 , diff(d,...

9 years ago | 1

Answered
Error using fsolve Too many input arguments.
Try to supply both x0 and fval as row vectors. Best wishes Torsten.

9 years ago | 0

Answered
using solve function and getting 0-by-1
syms x(t) eqn = diff(x, t) == (36552913157447*x)/17179869184 ; sol = dsolve(eqn) Same for the other differential equ...

9 years ago | 0

Answered
Draw random number from a truncated distribution with upper bound
https://de.mathworks.com/matlabcentral/fileexchange/53180-truncated-normal-generator Best wishes Torsten.

9 years ago | 0

| accepted

Answered
Unable to solve the collocation equations -- a singular Jacobian encountered.
res = [ya(2) ; yb(1)-1.0]; Best wishes Torsten.

9 years ago | 0

Answered
I Need the matlab code for the attach equation.
[p q] = size(sub_band); A = sum(diag(sub_band.'*sub_band))/(p*q); Best wishes Torsten.

9 years ago | 0

Answered
Triple integral after symsum with 4 variables
Q_k(t) = 1 is the correct result, even for the infinite sum. The reason is that integral_{0}^{d1} cos(m*pi*x/d1) ...

9 years ago | 0

| accepted

Load more