回答済み
Interpreting the results of 'fsolve'
Can I trust the variable solutions that is computed for me? An error norm of 0.000177715 is not bad, but "fsolve" couldn't do b...

約3年 前 | 0

| 採用済み

回答済み
Show more than plot at the same time
help figure https://uk.mathworks.com/help/matlab/ref/figure.html help subplot/tiledlayout https://uk.mathworks.com/help/matla...

約3年 前 | 0

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

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 0

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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 = ...

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 0

回答済み
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 ...

約3年 前 | 0

| 採用済み

回答済み
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 ...

約3年 前 | 0

回答済み
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...

約3年 前 | 1

回答済み
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 ...

約3年 前 | 1

| 採用済み

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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 ...

約3年 前 | 0

| 採用済み

回答済み
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.

約3年 前 | 0

| 採用済み

回答済み
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)

約3年 前 | 1

| 採用済み

回答済み
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...

約3年 前 | 0

回答済み
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 ...

約3年 前 | 1

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

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 0

回答済み
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....

約3年 前 | 1

| 採用済み

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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.

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 0

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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 ...

約3年 前 | 0

回答済み
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, ...

約3年 前 | 1

| 採用済み

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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.

約3年 前 | 1

回答済み
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('...

約3年 前 | 1

| 採用済み

回答済み
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...

約3年 前 | 1

さらに読み込む