Answered
can find regression and curve fit for given equation
Since your equation can be rearranged as dy/dx = 1/c * log((m-a)/b) your model assumes that dy/dx is equal to a constant that ...

3 years ago | 0

Answered
lsqnonlin - error in finite differences, arrays of incompatible size
The size of your problem changes in the course of the computation from 685 to 650 functions to be minimized (see above). This wi...

3 years ago | 0

| accepted

Answered
How to turn off the simplification condition?
Then use expr = simplify(expr,'IgnoreAnalyticConstraints',true)

3 years ago | 1

Answered
Least Squares with constraint on absolute value
rng("default") n = 32; y = rand(n,1) + 1i*rand(n,1); B = rand(n) + 1i*rand(n); x0 = rand(n,1) + 1i*rand(n,1); x0 = [real(x0...

3 years ago | 1

| accepted

Answered
Plotting the result of ODE that as a integral component.
For the first one substitute z(t) = integral_{tau=0}^{tau = t} y(tau) dtau and solve the system of differential equations y'...

3 years ago | 0

| accepted

Answered
How can I integrate the math equation (attachment) numerically?
Just as it's written: result = integral(@(Ex)Ex.*(NL(Ex)-NR(Ex)).*T(Ex),0,Inf) Of course, I don't know whether you defined the...

3 years ago | 0

Answered
Plot the Diagram of the probability of some data
I don't know what exactly you mean by "Probability Diagram", but the usual way is to use histogram(data,'Normalization','pdf')

3 years ago | 0

Answered
all function B = all(A < 0.5,3)
But why does this yield the same result? Because A has only 2 dimensions, not 3 or 4. Thus "all" operates on all elements separ...

3 years ago | 1

Answered
Unable to solve boundary condition problem
"ode == 0" cannot be explicitly solved for D2y. But given y and Dy, you can try to use Newton's method to supply D2y. Define a...

3 years ago | 0

| accepted

Answered
How to ramp a boundary condition in bvp4c
y_0 = 0.1; y_list = linspace(0,y_0,1000); fy_list = y_list.^(1.5); f_inter = @(y)interp1(y_list,fy_list,y); L = 10; n = 100...

3 years ago | 0

| accepted

Answered
How to find the point of intersection between three planes in MATLAB
If you don't have a point on the third plane, your problem is mathematically kind of a linear system of three equations in four ...

3 years ago | 0

Answered
How to calculate real probability of data
Usually, one assumes that the underlying distribution for the realizations in A is continuous. This implies that each element in...

3 years ago | 2

Answered
What can I do?
y(i,n) = 2*y(i, n-1) -y(i, n-2)+ (c*At/Ax)^2*(y(i+1, n-1)-2*y(i,n-1)+ y(i-1,n-1)); For n = 2 and i = 2, you try to access y(2,0...

3 years ago | 0

| accepted

Answered
converting matlab expression into a symbolic expression
syms x y z r R eqn = z == x^2/(2*r) + x^4/(8*r^3) + x^6/(16*r^5) + y^2/(2*R) + y^4/(8*R^3) + y^6/(16*R^5)

3 years ago | 1

| accepted

Answered
plotting variables within function
Recalculate Fwx from the solution (see above).

3 years ago | 0

Answered
how can i decoupling this system of equation? and solve it by ode.
This is a linear system of equations in theta1_dotdot and theta2_dotdot. Solve it explicitly for theta1_dotdot and theta2_dotdo...

3 years ago | 1

| accepted

Answered
Function optimization meeting conditions
ht = rand(401,51); [n,m]=size(ht); I=@(h) sum(sum((ht-h).^2)); h0 = zeros(1,m); v1 = ones(m,1); w1 = -ones(m-1,1); A1 = di...

3 years ago | 0

| accepted

Answered
define condition of the matrix
syms epsilon digits(100) A = [sym('1') sym('1')-epsilon;-sym('1') sym('1')+epsilon]; C1 = cond(A,1); C2 = cond(A,2); Cinf =...

3 years ago | 1

Answered
I need a MATLAB simulation for the below second order differential equation
The example "Solve Second-Order BVP" under https://uk.mathworks.com/help/matlab/ref/bvp4c.html tells you exactly how to procee...

3 years ago | 0

Answered
Solve Equation with symbolic Constants numerically.
syms w a b positive real u = a * w^3/(exp(b*w)-1); du = diff(u,w); wsol = solve(du==0,w)

3 years ago | 0

| accepted

Answered
Problem writing a summation expression
Either you use "sum" or you make a loop over j. If you don't manage to get C_1, this is an indication that you should visit MAT...

3 years ago | 0

| accepted

Answered
How to minimize the maximum error?
By a "linear approximating function" you mean a function l with l(x1,x2,x3) = a + b*x1 + c*x2 + d*x3 where a, b, c and d are ...

3 years ago | 0

| accepted

Answered
can someone help me regarding my code and error?
Adjust the sizes of the arrays involved in the calculation of "baseStationThroughputs" (see above). Further, use "fcn2optimexpr...

3 years ago | 0

Answered
Problems related to initial and boundary conditions for solving PDE
This function sets adiabatic boundary conditions at both ends. function [pl,ql,pr,qr] = heatbc(xl,ul,xr,ur,t) pl = 0;%ul-293...

3 years ago | 0

| accepted

Answered
Underdetermined Constrained Nonlinear System of Equations
My guess is that the x below is one of many other solutions. A = [1 1 1 1 1 1;-0.52 -0.52 0.3 0.3 0.64 0.64;0.94 -0.74 0.94 -0....

3 years ago | 1

| accepted

Answered
How to set diffrent initial conditions as a vector.
I already showed you how to do that. If xvec and Tvec are your given vectors of grid points and associated temperatures, set ...

3 years ago | 1

| accepted

Answered
Runge-Kutta-4th-order solution of 3 ODEs
As you can see above, you get the same plot with a "professional" MATLAB solver (ODE45). So I guess there is something wrong wit...

3 years ago | 1

Answered
[Mass Transfer] How do I solve the following infinite series analytical solution to find time (t)? The answers in solution manuals show that the answer is 5085.85 seconds.
D = 1.5e-7; % Diffusivity R = 0.05; % Radius CA0 = 0.2; % Initial Conc. CAS = 0.0; CA_target = 0.1*CA0; % Target Conc. N = ...

3 years ago | 0

| accepted

Answered
Integral of user-defined function
Your function is not vectorized. Thus you have to use integral_value = integral(f, 0, Inf, 'ArrayValued',true) instead of int...

3 years ago | 1

| accepted

Answered
trying to create a plot of cost per mile when the trailer weight increases in a program I wrote and i cannot get it to work.
%for plot clear clc F='diesel';%input('gasoline or Diesel: ','s'); C=6;%input('number of engine cylinders '); T='yes';%inpu...

3 years ago | 0

Load more