Beantwortet
Fsolve with different combinations of parameters
Varying the initial values for the unknown variables should be the first step. Try "MultiStart". Varying parameters is usually ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Matlab unable to find symbolic solutions for an ode
Do you mean diff(- FgE + FgM + Ft,t) instead of diff(t)*(-FgE + FgM + Ft) ? Because diff(t) does not make much sense to me. If ...

etwa 3 Jahre vor | 0

Beantwortet
how to solve a system of linear equation in matlab for gridded data
As said, you can't estimate z and a separately. Say you have y = z + a and data for y. Say you get z = 4 and a = 2 as solutio...

etwa 3 Jahre vor | 1

Beantwortet
Error using odearguments due to vector incoherent
Use dxdl=[dx1dl;dx2dl;dr1dl;dr2dl;dTdl]; instead of dxdl=@(l,x) [dx1dl;dx2dl;dr1dl;dr2dl;dTdl]; But nothing will be plotted ...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
Fourth order nonlinear DE solution where forcing function interpolation is known
You will have to use bvp4c, not ode45. And interpolation in the function where you define the derivative function can be done v...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Empty sym: 0-by-1 in solving a system of equations
MATLAB is correct: your system has no solution. You have a linear system of equations, and the vector of the right-hand side is ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Surf a function with different values
Define the function as f = @(x,y) (y>=2*x) + 2*(y<2*x); and make a surface plot.

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
symbolic substituiton with logical operators
syms B L m = [0 0 3;1 2 0]; m = sym(m); idx = m > 1; m(idx) = B; m = subs(m,1,L)

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to code multiple "if" conditions in app designer?
if a < b < c does not work. You have to split the condition in two: if a < b & b < c And if a = b does not work. A logic...

etwa 3 Jahre vor | 0

Beantwortet
the loop is not converging it is giving me an infinite value(it is increasing)
Why do you think your fixed-point iteration should converge ? If the absolute values of the eigenvalues of A were all < 1, it ...

etwa 3 Jahre vor | 1

Beantwortet
graph of iterative sequence
Add the command plot(1:n+1,x) at the end of your code.

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Solving system of 4 equation
Try "fsolve": e0 = [e10;e20;e30;e40]; % initial guesses for i = 1:25 fun = @(e1,e2,e3,e4) [((nco+v3*e1+v22*e2+v41*e4)^2...

etwa 3 Jahre vor | 0

Beantwortet
Time dependent InternalHeatSource where the heat input is in a vector.
Is there a way to pass a vector of heat inputs and the PDE solver using the same time steps as specified in my time vector? No....

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
how do i properly code a formula with multiple summations in matlab?
% parameters: M_array = 1:100; % Number of BS antennas SNR0_dB = 0; % SNR of the desired UE (in dB) SNR0 = 10.^(SNR0_dB/10...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Problem with solving an ODE
Use bcfcn = @(ya,yb)[ya(1)-(5+ya(2)*2)/0.49;yb(2)-1]; instead of bcfcn = @(ya,yb)[ya(1)-y0;yb(2)-1]; in your code.

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Iteration over initial condition in ode45
e = [0.4,0.5,0.6,0.7,0.8,0.9]; Pg = [3,4,5]; tistart = 500; tEnd = 7200; CDF_in = 0; for i = 1:numel(e) for j = 1:nume...

etwa 3 Jahre vor | 0

Beantwortet
min F(S_1,S_2,):1.25 S_1^2+0.4S_2^2 Min ʄ (S_1,S_2,S_3 ): S_1^2+0.35S_2^2 2S_1^2+0.6S_2^2≤5100000 5S_1^2+3S_2^2 ≤14250000
My guess is you want to maximize, not minimize the objective function. The result of mimimizing it is obviously s_1 = s_2 = 0 in...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Array indices must be positive integers or logical values.
I don't get this error message (see above). But you should rename the result from det(A) - otherwise you have "overwritten" the ...

etwa 3 Jahre vor | 0

Beantwortet
Why I'm getting empty values for the unknowns [a0, a1, a2, b0, b1, b2] using solve function?
u = [73.430, 9.522, 491.183, 569.351, 577.275].'; v = [730.723, 1311.200, 1286.046, 676.560, 1868.456].'; x_n = [88, 26, 503, ...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
interpolateSolution for a system of time dependent PDEs
For a time-dependent solution, you must additionally specify the index of the output time for which you want to interpolate: ui...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Projection of Ax on By where norm(x)=norm(y)=1 and A,B are matrices.
The projection of A*x on B*y is dot(A*x,B*y)/dot(B*y,B*y)*B*y I don't know where you want norm = 1 come into play here.

etwa 3 Jahre vor | 1

Beantwortet
Problem in using ddesd for a simple DDE with one dependent variable and two delay terms.
sol = ddesd( @ddefun, @delay, @history, [ 0, 1 ] ); t = sol.x; x = sol.y; plot(t, x); xlabel('t'); ylabel('x(t)'); title('...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
How do you plot markers to specific points?
The points in the graph you address are x(1), x(5), x(9) and x(15), not x=1, x=5, x=9 and x=15. Use "find" before plotting to g...

etwa 3 Jahre vor | 1

Beantwortet
Can I include an ODE when I solve a system of PDEs in pdepe
No, but this code should work for your purpose: https://de.mathworks.com/matlabcentral/fileexchange/97437-pde1dm?tab=reviews

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
solving a multivariate equation (4 equations, 4 variables) for n rows data using loop
syms Aprim0 Bprim0 Xmid Ymid R real syms Xup Xdown Yup Ydown % Define system of equations eqn1 = Yup - Aprim0*Xup - Bprim0 =...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to make a tridiagonal matrix (N-1)*(N-1), with different values in the first row?
Change the two values manually after you created A with the "standard" diagonal vectors. A = ...; A(1,1) = A(1,1) + 4/3; A(1,...

etwa 3 Jahre vor | 0

Beantwortet
Sparse matrix x = A/B
Don't post pictures, post your code in plain ascii so that we are able to copy and execute it. Your A in the picture you posted...

etwa 3 Jahre vor | 0

Beantwortet
Why bvp4/5c produces anomalous solution when using parameter passing using anonymous functions ?
Works for me. With each call to bvp5c, the options structure has to be modified because e changes within the loop. e = 1; so...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
When I run my code, I keep getting this error: "The following error occurred converting from sym to double: Unable to convert expression into double array."
So you have a constant source term int^1_0(y'*x)dx in all grid points - independent of the position x in the interval [0 1] ? ...

etwa 3 Jahre vor | 1

Beantwortet
Error while running "lsqcurvefit" function. "Failure in initial objective function evaluation. LSQCURVEFIT cannot continue."
Before calling lsqcurvefit, try to evaluate your function by fun(c0,xdata) and see what you get. If this evaluation is not pos...

etwa 3 Jahre vor | 1

Mehr laden