Respondida
sym/besseli - Too many input arguments.
There is no third argument in the symbolic function "besseli": https://de.mathworks.com/help/symbolic/besseli.html

más de 3 años hace | 2

| aceptada

Respondida
Symbolic Computations for three non-linear equations solution
fl = [1.883806, 1.883135, 1.882170]*10^9; Qe = [161.43, 10.765, 2.5734]*10^4; syms A fu alpha eq1=fl(1)-(1+(A/(Qe(1)^alpha))...

más de 3 años hace | 1

| aceptada

Respondida
i am trying nonlinear for nonlinear ode using by finite difference method
You want to solve a nonlinear system of equations using Newton's method, but you didn't supply the Jacobian "df". i.e. df{i}/dx...

más de 3 años hace | 0

Respondida
which of the following sets vectors are independent?
In order to prove that sin(t), cos(t) and cos(2*t) are independent, you have to show that if f(t) = a*sin(t) + b*cos(t) + c*co...

más de 3 años hace | 0

| aceptada

Respondida
Help in writing a a code for an array based on comdition.
A1 = [-0.0082 -0.0409 -0.0175 -0.0853 0.0217 -0.2556 -0.0302] A = -(A1<0) + (A1>0) s = sum(A) threshold = 12; v...

más de 3 años hace | 0

| aceptada

Respondida
Keep getting an error with trapz. Please help
baba = trapz(time,ribua) instead of baba = trapz(T,ribua)

más de 3 años hace | 1

Respondida
Fitting a Transcendental Equation with Multiple Solutions
You can try "lsqnonlin" with the functions F_ij defined as F_ij = f(a1,a2,a3,x_i,y_ji) - c Here, the y_ji are the y-values cor...

más de 3 años hace | 2

| aceptada

Respondida
ODE45 ERROR en el @odefun
Use dfidt=[dfi1;dfi2]; instead of dfidt=[dfi1(1);dfi2(2)]

más de 3 años hace | 1

| aceptada

Respondida
Error using plot. Data must be numeric, datetime, duration or an array convertible to double.
Arm = 5; T = 2; t = linspace(0,5*T,1000); t = t.'; hold on for N=0:Arm n = 1:N; A0 = 5/4*ones(size(t)); An= ...

más de 3 años hace | 0

Respondida
Why do fit results and parameter confidence intervals depend on magnitude of units? Why are confidence intervals nonsense on a good fit?
Your model is not adequate because it needs 3 parameters, not 4. Write it as curvem(x) = a.*(x./b).^(-c) + d = a/b^(-c) * x^(-...

más de 3 años hace | 0

| aceptada

Respondida
How to observe parameter value existing in constraint while solving problem using "ga"
Add the line left_hand_side = E_prop + cumsum(sol.S.*(sum(Energy_Pr,2))) after the solution has been obtained.

más de 3 años hace | 0

Respondida
selecting indices in a matrix and setting the rest to zero
A = rand(5,3); idx = [2 4].'; idx_left = setdiff(1:size(A,1),idx) A(idx_left,:) = zeros(numel(idx_left),size(A,2))

más de 3 años hace | 0

| aceptada

Respondida
I am trying to solve current equations of a pv cell using fsolve butit keeps showing error, can someone pls see what the error in my code is?
clc; clear all; Pmpp = 50; %Max Power Vmpp = 17.98; %Vol at Pmax Impp = 2.77; %Current at Pmax Isc= 3; ...

más de 3 años hace | 0

| aceptada

Respondida
Use one function in another
n = 7; a = [3 4 1 2 5 2 1]; A = createMatrix(n, a) period = findPeriod(A) function A = createMatrix(n, a) A = zeros(n);...

más de 3 años hace | 0

| aceptada

Respondida
Bvp4c 2nd order equation with 2nd and 3rd order boundary conditions
Since you can only impose two boundary conditions for a second-order equation, take the first and the third. They should already...

más de 3 años hace | 0

| aceptada

Respondida
Solve non linear m equations in n unknows with m,n
k = lsqnonlin(F,k0)

más de 3 años hace | 0

| aceptada

Respondida
How can ı solve this difference equation ?
um2 = 0; um1 = 0; u0 = 1.5820; u1 = -0.5820; u2 = 0; xm2 = 0; xm1 = 0; x0 = 1.3679*xm1 - 0.3679*xm2 + 0.3679*um1 + 0.2642...

más de 3 años hace | 0

| aceptada

Respondida
Variable not saving as a double
You mean t = 0:1:100; x = 0.5*exp(2*sin(t))./(10.5*exp(2*sin(t))); plot(t,x) (which is equal to 0.5/10.5=0.04761... because ...

más de 3 años hace | 0

| aceptada

Respondida
Constraints on Parameter Estimation
Use lsqlin instead of fitlm.

más de 3 años hace | 0

| aceptada

Respondida
problem in creating function file using ode45
Be careful with the order of the solution vector Y. It is (y, Dy, x, Dx). You have to supply the vector of initial values "ic" i...

más de 3 años hace | 0

| aceptada

Respondida
How do I plot two different functions on the same plot?
Use hold on plot(...) % plot first graph plot(...) % plot second graph hold off

más de 3 años hace | 0

| aceptada

Respondida
solving series of algebric linear equations using for loop
N = 4; xleft = 1.0; xright = 3.0; x = linspace(xleft,xright,N+1); h = (xright-xleft)/N; A = zeros(N+1); b = zeros(N+1,1); ...

más de 3 años hace | 0

Respondida
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
You don't define Kb as a global variable in the part of your code where you set it as Kb = physconst('boltzmann'); % 1.38*10^(-...

más de 3 años hace | 1

Respondida
Projectile Motion when y0 does not equal 0
Solve y(t) = 0 for t and you'll find tf, the time when the projectile hits the ground.

más de 3 años hace | 1

Respondida
Matrix "index in position 1 exceeds array bounds (must not exceed 1)"
i=1; X1(i)=0; X2(i)=0; X3(i)=0; error_X1(i)=9999; error_X2(i)=9999; error_X3(i)=9999; instead of i=1; X1=0; X2=0; X3=...

más de 3 años hace | 0

Respondida
invalid expression error.
B = 0.02; a = 0.1; f = 0.53; phi = 3*pi/4; t = -5:0.05:10; x = B^a*exp (-a*t) .*sin(... 2*pi*f*t+phi); xu = x...

más de 3 años hace | 1

| aceptada

Respondida
please help i keep getting erro
samsonwork() function sol=samsonwork global Br Sc delta P K R n epsilon %x=linspace(-1,1,11); r=0:0.01:3; Br=1;Sc=0.4;n=3;d...

más de 3 años hace | 1

| aceptada

Respondida
fmincon: proble defining the function
f = @definefunction; instead of f=definefunction(x); And you cannot use random inputs on each call - thus comp1 = double(ra...

más de 3 años hace | 0

| aceptada

Respondida
Finding linear combination of two vectors such as every element is positive
n = 5; v1 = -10 + rand(1,n)*20 v2 = -20 + rand(1,n)*40 % If there is a solution x for which A*x > zeros(size(A,1),1), then th...

más de 3 años hace | 1

Respondida
User defined function within ode45
Symbolic functions like the one you get if you use the "piecewise" command are not allowed with ODE45. Either define the right-...

más de 3 años hace | 0

Cargar más