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

3 years ago | 0

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

| accepted

Answered
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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

Answered
OPTIMIZATION BY GA toolbox
https://de.mathworks.com/help/gads/gamultiobj.html

3 years ago | 0

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

3 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

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

3 years ago | 1

| accepted

Answered
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 years ago | 0

Answered
How to check whether point is inside high dimensional convex hull?
https://de.mathworks.com/matlabcentral/fileexchange/10226-inhull

3 years ago | 1

| accepted

Answered
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 years ago | 1

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

3 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

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

3 years ago | 1

| accepted

Load more