Respondida
Initial conditions for PDEPE
Maybe you could add a little diffusivity to the components with spurious oscillations (those with f=0). If this is not possible:...

más de 3 años hace | 1

| aceptada

Respondida
Goodness of fit for a Zipf distribution
I set up the maximum likelihood function for your data and came up with an estimated value of s = 2.116 for the distribution par...

más de 3 años hace | 1

| aceptada

Respondida
Problem solving simultaneous ODEs using 4th order Runge-Kutta method (Too many input arguments.)
I changed (1./(1+(1/B).*C22d)).*(-c1.*(K22.*vy)); to (1./(1+(1/B).*C22d)).*(-c1.*(K22d.*vy)); in the definition of fvy. And...

más de 3 años hace | 0

Respondida
incorrect number or types of inputs or outputs for function 'int'
% Define the parameters of the signal A = 1; % Amplitude T_0 = 4*pi; % Period syms t % Generate the signal ...

más de 3 años hace | 0

| aceptada

Respondida
How to solve system of ODE's with Boundary Conditions using BVP4C? (I would be very helpful for you)
Your remaining task: A loop over the values of M. M = 1.0; bvpfcn = @(x,y)[y(2);y(3);-y(1)*y(3)+y(2)^2+M*y(2);2*y(3)+2*y(1)*y(...

más de 3 años hace | 1

Respondida
How to solve a system of three coupled vectorized second order ODEs
System to solve for r1=(r1x,r1y,r1z) is: dr1x/dt = v1x dv1x/dt = K1*(m2*(r1x-r2x)/((r1x-r2x)^2+(r1y-r2y)^2+(r1z-r2z)^2)^1.5 + ...

más de 3 años hace | 0

Respondida
how to combine matrices
I think you mean xp1 = rand(2,3); xp2 = rand(4,5); xp3 = rand(1,4); xp4 = rand(12,18); szx1 = max([size(xp1,1),size(xp2,1),...

más de 3 años hace | 0

Respondida
Why does it give me errors during numerical integration?
T0=1;Hrxn=1;CpSum=1;K0=1;E0=1;R=1;FA0=1;FB0=1;FC0=1;FD0=1;thetaB=1;thetaC=1;thetaD=1;FT=1; T = @(x) T0 + (-Hrxn)./(CpSum).*x; ...

más de 3 años hace | 0

| aceptada

Respondida
Index exceeds the number of array elements. Index must not exceed 10000.
My guess is that "Ytrain" has less than "len" elements. To confirm this, add the lines disp(len) disp(size(Ytrain)) after th...

más de 3 años hace | 0

| aceptada

Respondida
Estoy intentando acceder a los costos de las licencias para matlab
Contact Sales: https://de.mathworks.com/company/aboutus/contact_us/contact_sales.html

más de 3 años hace | 0

Respondida
REQUIRE CODE FOR PARAMETER IDENTIFIABILITY FOR ODE BASED MODEL HAVING KINETIC PARAMETERS.
Take a look at https://de.mathworks.com/matlabcentral/answers/1933060-find-kinetic-constants-from-differential-equations?s_tid=...

más de 3 años hace | 0

| aceptada

Respondida
Getting Error Codes, not exactly sure what they mean or how to fix them, please help
% Define circuit parameters Vin_rms = 120; % V Vout = 2.4; % V Iload = 25e-3; % A Vripple = 0.12; % V R2 = 1e3; % Ohm...

más de 3 años hace | 0

Respondida
I am trying to get the answer for the sum to infinity for a geometric series. My output should be 3/2 and a loop should be used. I've done that but it won't work. Please help
Sum2Infinity = 0.0; for i = 0:1:10000 Sum2Infinity = Sum2Infinity + FirstTerm * CommonRatio^i; end

más de 3 años hace | 0

| aceptada

Respondida
I cant get the correct plotting
% Given p = 7500; % kg/m^3 Cd33 = 16*10^10; %N/m^2 vp= 4620; % Ns/m Ceb = 1.43E-9; % F phi = 2.62; % As/m % Piezoelectri...

más de 3 años hace | 0

| aceptada

Respondida
Matrix size mismatch Matlab Function
S(j) is a single value (1x1). exp(-norm(r-mu(:,j))^2/(2*sigma^2)) is a vector (50x1). You try to save a vector in a scalar val...

más de 3 años hace | 0

| aceptada

Respondida
Help with solving a system of coupled equations of motions in time domain?
How did you come up with the sdot vector for the equations so far ? If you use a mass matrix, you simply have to add the additi...

más de 3 años hace | 1

Respondida
Error using odearguments ; Error in ode15s (line 153); Error in anand_shrivastan (line 625) ;below is the code
Add dZdt = dZdt.'; as last line in function "SpeciesODE".

más de 3 años hace | 0

| aceptada

Respondida
How to solve large system of nonlinear equations using fsolve?
n = 20; A = rand(n); B = @(X)X*A-X.*X; X0 = rand(1,n); X = fsolve(B,X0) % or n = 20; A = rand(n); B = @(X)quadratic(X,A)...

más de 3 años hace | 0

| aceptada

Respondida
Cannot use solver function with poisscdf function
syms lambda n eqn = exp(-lambda)*symsum(lambda^n/factorial(n),n,0,35) == 0.95; solve(eqn,lambda)

más de 3 años hace | 0

Respondida
Very slow function, excessive overhead?
The inner while loop is not necessary: if flag(i,2)-flag(i-1,2) == 1, then of course flag(i,2)-flag(i-1,2) ~== -1. Thus the incr...

más de 3 años hace | 0

Respondida
Problem during the use of 'fzero'
I'm surprised the initial value x0 is part of your function definition. Are you sure this is correct ? %% Global variables decl...

más de 3 años hace | 1

Respondida
How to solve 2nd order BVP using Chebyshev Spectral Method?
alpha = 0.1; xmesh = linspace(0,1,50); solinit = bvpinit(xmesh, [0 0]); bvpfcn = @(x,y)[y(2);0.75/(1+6*alpha*y(2)^2)]; bcfcn...

más de 3 años hace | 0

Respondida
Magnetized Hybrid Nanofluid Flow , MATLAB Code has some problem. Please help to Rectify. Highly Appreciated
MHN function MHN % Initialization of paramters beta=1.5; lambda=1.5; wt=2.5; wb=1.5; ks1=0.5; ks2=0.1; a=0.5; epsilo...

más de 3 años hace | 0

| aceptada

Respondida
optimization in smart energy management system.I have used MILP algorithm but i got infeasible solution no point satisfy the constraints.how could i sort out these issues.
I have used MILP algorithm but i got infeasible solution no point satisfy the constraints.how could i sort out these issues. It...

más de 3 años hace | 0

Respondida
how to supply a cost function gradient based on some of optimisation paramters
Would you please tell me if there is a way to supply a gradient based on some optimization parameters and use the finite differe...

más de 3 años hace | 1

Respondida
What is the steady state criteria in crank nicolson scheme, especially impilicit finite difference method? and How to stop time level when steady state is reached?
You can define several stopping criteria. Try max(abs(1-CN(:)./COLD(:))) < tol with tol = 1e-4 ... 1e-6

más de 3 años hace | 0

Respondida
Nested Function is not working correctly with ode45
You can also get an analytical solution for v since your piecewise equation is easily integrated. EGA215_1234567_A1_Q2 functio...

más de 3 años hace | 0

Respondida
Constrained Optimization Problem With Obj Function Which Is Numerical Solution To A System Of ODE's
You never use the 53 solution variables of u and v in your code. And you solve the following ODEs for u and v du/dt = u, u(0)...

más de 3 años hace | 0

Respondida
Each element of INTCON must be an integer in the range [1 numVars], ([1 1]). What is the meaning??
f = c' * P_max + c0; % objective function is a scalar value. Thus intlinprog assumes you want to solve a problem with only one ...

más de 3 años hace | 1

Respondida
Error using symfun/subsref (line 203) Invalid argument at position 2.
N(i) = symfun(((1/(2*A))*(a(i)+b(i)*x+c(i)*y)),[x y]); instead of N = symfun(((1/(2*A))*(a(i)+b(i)*x+c(i)*y)),[x y]); And N...

más de 3 años hace | 0

Cargar más