Community Profile

# Torsten

Last seen: Today Active since 2013

#### Content Feed

View by

How do I make a column vector to add to my original matrix?
What about B = [4;-1;0] ?

16 hours ago | 1

| accepted

How to find the orientation of the line of the intersection between two planes?
If you look at the next lines in Matt's code, he creates 100 points on the line. Thus in the modified code below, Pstart could ...

18 hours ago | 2

BVP4c for three boundary set of boundary conditions
You didn't try to understand the code I provided for the similar problem, did you ? You still supply 6 initial conditions altho...

21 hours ago | 0

Adding more boundary conditions to pdepe
So my question is that is it possible to set BCs at a and b. It depends what boundary conditions you want to set. If it is simp...

21 hours ago | 0

| accepted

implicit function ，differeation
syms x y(x) D2y eqn = x + sin(y)/2 - y == 0 d2eqn = diff(eqn,x,2) d2eqn_subs = subs(d2eqn,diff(y,x,2),D2y) D2y = solve(d2eqn...

22 hours ago | 0

How to solve a second-order BVP with multiple boundary conditions?
How do I change the regions' definition and bvp function setup so that only 6 boundary conditions are required? For every equat...

22 hours ago | 0

| accepted

I defined a function that should give me an array with 3 elements, but when I use it it's giving me a lot more than 3.
Maybe you mean V0=10; mu=0.4 ; tf=1; [t,x,N] = lab1(V0,mu,tf); hold on plot(t,x) plot(t,N) hold off grid on functi...

22 hours ago | 1

| accepted

How to find the normal vector on a Plane in 4d and above?
It's a vector orthogonal to P2-P1, P3-P1 and P4-P1 (which all lie in the plane), thus e.g. P1 =[252716585.970010 -136769230.769...

1 day ago | 0

| accepted

vpasolve unable to find solution of 6 simultaneous equations
A corrected version of the last part of your code would be Alt = 6562 * 0.3048; %Altitude (m) M = 6300; %Aircraft mass (kg) p...

1 day ago | 0

| accepted

Multiplying two 3-dimensional matrices
A = rand(30,64,4); B = rand(64,30,4); for i = 1:size(A,3) C1(:,:,i) = conj(A(:,:,i))*B(:,:,i); C2(:,:,i) = B(:,:,i)*conj...

2 days ago | 0

Attempting to perform the Runge-Kutta-Fehlberg Algorithm
A partial answer is given by the code below - your test ODE is solved correctly with fixed time stepsize. Errors in your origin...

3 days ago | 0

How to pass extra parameters to ODE event function?
In the same way as you pass parameters to other functions: options = odeset('Events',@(t,y)myEventsFcn(t,y,params)); functio...

3 days ago | 1

| accepted

How to curve fit custom equation with sigma function
Look at the example Fit a Custom Model Using an Anonymous Function under https://de.mathworks.com/help/curvefit/fit.html to ...

3 days ago | 0

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

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

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

4 days ago | 0

| accepted

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

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

4 days 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 (...

4 days 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

5 days ago | 1

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

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

5 days ago | 0

| accepted

OPTIMIZATION BY GA toolbox

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

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

6 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) ?

6 days ago | 0

How to integrate a lognormal pdf
Use "logncdf" with the parameter values from "fitdist" and the input values xi1.

6 days ago | 1

| accepted

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

6 days ago | 0