Answered
i have been trying to solve 50 nonlinear equations simultaneously
Does the approximate solution below look correct ? Note that you don't set F(49) in your code. clc clear all mata=zeros(1,50...

2 years ago | 0

Answered
Determining the coordinates of a node between two known nodes and knowing the distances between the known nodes
There is only a unique solution for this problem if AC + CB = AB. In all other cases, you either get no solution (AC + CB < AB) ...

2 years ago | 3

Answered
Probolem when using fmincon :The solver starts from a feasible point but converges to an infeasible point
It means that the point "fmincon" converges to might have a lower value of the objective function than the initial point x0, but...

2 years ago | 1

Answered
Does this error indicate that I need the Phased Array System Toolbox to execute this calculation?
https://uk.mathworks.com/help/matlab/ref/matlab.codetools.requiredfilesandproducts.html

2 years ago | 0

Answered
Output 0x1 sym solving a system of equations
It seems your system of equations is inconsistent (it results in 0 = -1 for the fourth equation) : clear clc close all F1_NF...

2 years ago | 1

Answered
MatLab solves BVP with only left-hand side boundaries (How?)
A system of odes needs as many boundary conditions as the sum of the degrees of its equations. Since all your equations are firs...

2 years ago | 0

| accepted

Answered
How to use fsolve to solve matrix equations involving matrices of different dimensions?
Your equations are linear in the unknowns - so you should use a linear solver, not a nonlinear one like "fsolve": % Calibration...

2 years ago | 0

| accepted

Answered
How do I incorporate an interval ?
Add the line maxmin = maxmin(maxmin>-2 & maxmin<1) to your code.

2 years ago | 1

| accepted

Answered
How to introduce 2nd order derivative term in pdepe?
If all the second-order spatial derivatives in your equation can be written in one expression as d/dx(f(x,t,I,dI/dx)*dI/dx) with...

2 years ago | 0

| accepted

Answered
Genetic algorithm optimization tool not accessing the objective function
As you can see from the result, ga never seems to execute the "if" condition in your objective. I don't know why you test for t...

2 years ago | 0

Answered
Lognormal Fitting with the Pore Size and its Probabilities
Counts = [71 73 53 77 79 141 158 237 360 594 958 1659 3094 7183 19034 40051 125001 143248 164224 168209 172406 167600 160578 146...

2 years ago | 1

Answered
What is the specific calculation formula for the smoothness function in Matlab navigation toolbox?
Did you read the reference article ? [1] Lindemann, Stephen R., and Steven M. LaValle. "Simple and efficient algorithms for com...

2 years ago | 1

Answered
Difference in getting symbolic integral result
If you had specified a definite integral, the results would have been the same. Indefinite integrals are only unique up to an a...

2 years ago | 1

| accepted

Answered
A Maximum Likelihood estimation with fminunc
By the way: Why do you iterate the solutions obtained from fminunc ? EInitial_xt = xlsread('Exposures.xls'); E_xt = EInitial_...

2 years ago | 1

| accepted

Answered
an example of using ode15i
[t,y] = ode15i(@odefun_try,tspan,y0,yp0); instead of [t,y] = ode15i(odefun_try,tspan,y0,yp0);

2 years ago | 0

| accepted

Answered
How to vectorize the given code?
u = [1, 2, 30, 50];b=u; dim = length(u); N=dim; s_u = u(1:dim/2)'; angles_u = u((dim/2)+1:end)'; s_b = b(1:dim/2)'; angle...

2 years ago | 0

| accepted

Answered
Condition based integration in MatLab
syms r R rp real positive G(r,rp) = piecewise(r<rp,1/rp,r>=rp,1/r); int(rp^2*G(r,rp),rp,0,R)

2 years ago | 1

| accepted

Answered
Plotting inequalities on the complex plane
It's only left to decide whether it's inside or outside ... z = @(x,y)x+1i*y; f = @(x,y)abs(1+z(x,y)+z(x,y).^2) - 4; fimplici...

2 years ago | 0

| accepted

Answered
Maximum Likelihood estimation with fminunc
D_xt(8162) = 0, and the log of 0 gives NaN. This causes problems for "fminunc". So you should either delete rows where E_xt = ...

2 years ago | 1

| accepted

Answered
How can I plot the graph with the highest, lowest and middle values?
Yes, I corrected one mistake in your code, but I also wrote that I don't think that the curves in the image were produced the wa...

2 years ago | 0

Answered
How can I plot the graph with the highest, lowest and middle values?
Add the lines [FLH,I] = sort(FLH); Lower_LCOH_SOEC = Lower_LCOH_SOEC(I); Upper_LCOH_SOEC = Upper_LCOH_SOEC(I); Mean_LCOH_S...

2 years ago | 0

Answered
lsqcurvefit not working with coupled ODE Function
Use pfit = lsqcurvefit(@(param_vector,tspan) optimization_beer_fermentation(param_vector, tspan, y0), init_parameters, t_data, ...

2 years ago | 0

Answered
Calculate angles correctly between two vectors using the dot product.
I think an intuitive way is to compute the angles between the positive x-axis and the respective vector counterclockwise first (...

2 years ago | 0

Answered
Problem in solving matrix diiferential equation using ode45?
syms t tau_1(t) tau_2(t) tau_3(t) tau_4(t) tau_5(t) tau_6(t) tau_7(t) tau_8(t) tau_9(t) tau_10(t) tau_11(t) v = transpose([tau_...

2 years ago | 1

Answered
DAE Error using mupadengine/feval_internal Expecting as many equations as variables.
The result of the following analysis of your differential-algebraic system is: You must prescribe one of the six algebraic func...

2 years ago | 0

| accepted

Answered
Help for solving linear system that involves Bessel and Hankel Functions
What kind of functions are the P_m^n and Q_m^n ? Fix a finite upper bound N for the loops instead of Inf. Then you have a linea...

2 years ago | 0

Answered
Plotting Fourier Series (first 5, 15, 25 partial sums, (3 Plots))
You should be able to add the missing plots. x = 0:0.01:2*pi; n = 25; Fn = fourier(n,x); plot(x,Fn) function Fn = fourier(n...

2 years ago | 1

Answered
Why do I receive Jacobian singular error while solving second order differential equation with boundary conditions?
You need two boundary conditions, not three to fix a solution for a second-order ODE. Anyhow: in each of your cases, you will ...

2 years ago | 0

| accepted

Answered
PDE Toolbox Coefficient Specification
As I already answered, f has to be referenced as a function or a function handle in your case. It cannot be given in the GUI - ...

2 years ago | 0

Answered
Matlab doesn't like my function, why?
Use elementwise division (./) and multiplication (.*) in the computation of An and B: https://uk.mathworks.com/help/matlab/mat...

2 years ago | 1

| accepted

Load more