Respondida
Nested differentiation in nested integral
I would (without mathematical scruple) differentiate with respect to "r" under both integrals, then use "integral2" to integrate...

alrededor de 3 años hace | 0

| aceptada

Respondida
How would I remove multiple specific elements from an array.
Data = [923 916 932 927 908 931 953 926 919 963]; B = sort(Data,'ascend'); n = numel(B); xmin = B(1); xmax = B(n); Q1 = rou...

alrededor de 3 años hace | 0

Respondida
Trying to apply a general exponential fit to data
As written in the output from CFtool: x is normalized by mean 9.301 and std 6.055. Thus, for x in the equation, you have to ins...

alrededor de 3 años hace | 0

| aceptada

Respondida
Vectorizing Loops over Matrix Elements
If the function f "knows" how to cope with two vectors as inputs that don't have the same size: Yes. E.g. n = 3; m = 5; f = ...

alrededor de 3 años hace | 0

| aceptada

Respondida
hello. how I create function?
You should ask the authors of the code why they didn't include the function "checkHexagonal". Maybe these are the additional fu...

alrededor de 3 años hace | 0

Respondida
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 ...

alrededor de 3 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 1

Respondida
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 ...

alrededor de 3 años hace | 1

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 3 años hace | 0

| aceptada

Respondida
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.

alrededor de 3 años hace | 0

| aceptada

Respondida
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)

alrededor de 3 años hace | 1

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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 ...

alrededor de 3 años hace | 1

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

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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....

alrededor de 3 años hace | 1

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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.

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 3 años hace | 0

Respondida
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, ...

alrededor de 3 años hace | 1

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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.

alrededor de 3 años hace | 1

Respondida
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('...

alrededor de 3 años hace | 1

| aceptada

Respondida
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...

alrededor de 3 años hace | 1

Respondida
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

alrededor de 3 años hace | 0

| aceptada

Respondida
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 =...

alrededor de 3 años hace | 0

| aceptada

Cargar más