# Torsten

**Statistics**

**MATLAB Answers**

**0** Questions

**4,803** Answers

RANK**21**

of 273,307

REPUTATION**11,628**

CONTRIBUTIONS

**0** Questions

**4,803** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**1,296**

RANK

of 18,452

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 122,706

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Method of Lines 2D

This line is wrong T(2:99, 2:99) = y; because of the error message given.

9 hours ago | 1

How to solve Multivariate equations

%Scripte illustre les valeurs de phi et s %script Méthode Newton-Raphson (for 2 variables) clear, clc disp('NEWTON-RAPHSON M...

12 hours ago | 0

| accepted

GPS user position loop , problem with matrix is singular

I think you forgot to close the k-loop before the definition of H. What is the matrix A ? It's not defined in your code.

15 hours ago | 0

Optimization single nonlinear equation to fit predicted data to actual data

"nonlcon" as the nonlinear constraint function from "fmincon" can constrain a*p1(i)^w * p2(i)^y * p3(i)^z as well, if this is wh...

15 hours ago | 0

Defining objective functions appropriately

Usually, you maximize the corresponding log-likelihood function. So it's a maximization problem. To maximize, use one of MATLA...

21 hours ago | 0

Global fitting two functions with shared parameters and variable, which fits two different data sets, respectively

Two data sets Adata and Bdata which are physically different properties and has values that are completely different in digits (...

1 day ago | 1

| accepted

Plot Population growth function with different values of b using for loop

f = @(t,b,d,N0) N0*exp((b-d)*t); t = 0:0.1:10; N0 = 400; b = [0.1 0.001].'; d = 0.001; plot(t,f(t,b,d,N0)) grid on

1 day ago | 0

Maximum perpendicular distance between lines

x = [120 150 180 210 240 270 300 330 360]; % power y= [ 1.4000 1.3000 1.3000 1.4000 1.7000 2.400...

1 day ago | 0

| accepted

fzero with two variables and an array of elements in a loop

p.V1=1e-7; AA=@(y,T) 4e17.*exp(-25619./T).*(y-0.02).^2./(0.2-y).^3; BB=@(y,z,T) 5e7.*(0.6+2e-5.*T.*log(AA(y,T)./A(z,T))+1.154....

1 day ago | 0

| accepted

OPTIMIZATION BY GA toolbox

https://de.mathworks.com/help/gads/gamultiobj.html

2 days ago | 0

How do I get point between two high dimensional points?

0.5*(x1+x2) or in general: (1-lambda)*x1 + lambda*x2 for 0<=lambda<=1.

2 days ago | 0

| accepted

Avoid evaluation in vectorised conditional expressions

If your right-hand side contains expressions with x, you must replace x by x(idx1) resp. x(idx2).

3 days ago | 1

| accepted

How to reorientate the orientation of a mobile robot to a specific angle.

You mean change orientation_old = [2*pi*rand(1),0] to orientation_new = fliplr(orientation_old) ?

3 days ago | 0

How to integrate a lognormal pdf

Use "logncdf" with the parameter values from "fitdist" and the input values xi1.

3 days ago | 1

bvp4c for coupled interface boundary conditions

Read this carefully, and you will know how to set up your problem: https://de.mathworks.com/help/matlab/math/solve-bvp-with-mul...

3 days ago | 0

How to check whether point is inside high dimensional convex hull?

https://de.mathworks.com/matlabcentral/fileexchange/10226-inhull

3 days ago | 1

| accepted

Obtaining a matrix of solutions with fsolve

Don't solve for all x values at once. Call "fsolve" in a loop and solve for each pair of combinations for (c1,c2,c3,c4) separa...

3 days ago | 1

pdepe coupled boundary conditions

pl = pr = 0, ql = qr = 1 for both components u1 and u2. What's the problem ?

3 days ago | 0

define a function in terms of an integral with variable limits

f1=@(t)3+2*cos(2*pi*t); f2=@(t)4-3*sin(2*pi*t); ff=@(t)-f1(t)-f2(t); gg=@(u,t)integral(ff,u,t); ww = @(u,t)f1(t).*exp(gg(u,t...

3 days ago | 0

| accepted

How can I improve the efficiency of an equation with double summation

rng("default") M = 100; % Some temporary vectors so that the code can run t = linspace(2,10,10001); y = sqrt(t); x = abs(ra...

3 days ago | 0

| accepted

How do I interpolation into a ODE45 function for my trajectory code?

I additionally told ode45 to stop integration at h = 0. clc clear % define the initial conditions for the falling object y...

3 days ago | 0

| accepted

custom equation fit in curveFitter is not working

pc2 = [ 0 0.0001 0.0011 0.0216 0.2847 0.8708 1.0000]; lam_2 = [ 0 30 55 110 2...

4 days ago | 1

| accepted

numerical integration inf to inf

Set a=-1+eps; b=1-eps; instead of a=-1; b=1; For comparison: syms x e = 0.01; f = 1/sqrt((1-x^2)+(e/2)*(1-x^4)); valu...

4 days ago | 0

Bessel Equation VPASolve for the order

nu = 0:0.1:7; B = besselk(nu,3)-5; plot(nu,B) fun = @(nu)besselk(nu,3)-5; nu = fzero(fun,[6 7])

4 days ago | 1

| accepted

How to plot non-quadratic functions?

I suggest you evaluate the three profit functions for a rectangular region [alpha_min,alpha_max] x [ F_min,F_max] and introduce ...

4 days ago | 0

| accepted

Problem with undefined function

An alternative without the toolbox: logncdf_user = @(x,mu,sigma) 0.5*(erf((log(x)-mu)/(sqrt(2)*sigma))+1); x=0:0.1:10; hold o...

5 days ago | 0

A system of nonlinear equations with three variables

The equations for x and y (eqnx and eqny) are polynomials of degree 3 in x resp. y. They might have several real solutions x an...

5 days ago | 0

| accepted

Way to solve AX=XB

dim = 4; X = sym('X',[dim dim]); A = rand(dim); B = A.'; [M, ~] = equationsToMatrix(A*X==X*B) if rank(M) < size(A,1)^2 N...

6 days ago | 0

Trouble using lsqnonlin to fit the IV curve of a solar cell

You did not include global V Voc Jsc T k q J in the script part. clc clear global V Voc Jsc T k q J %reads input file ...

6 days ago | 0

| accepted

How do I represent this sym function as a written formula

syms s f = vpa(ilaplace(1/((s+7)*(s^3+4*s^2+6*s+5))),4)

7 days ago | 0