답변 있음
Any availiable function to find the Taylor series of multi variables function in Matlab?
https://uk.mathworks.com/matlabcentral/answers/92764-how-do-i-generate-the-taylor-series-as-a-function-of-several-variables-in-m...

8일 전 | 0

| 수락됨

답변 있음
I need help displaying the eigenvalue after each iteration
A = rand(10); ATA = A'*A; x0 = rand(10,1); for iter = 1:10 y = ATA*x0; x = y/norm(y); x0 = x; y end lar...

8일 전 | 0

답변 있음
Solving 4 nonlinear equation for 4 unknowns numerical - doesn't find an answer [0×1 sym]
Try S = vpasolve(E,[x1,x2,y1,y2],[0.086 -0.176 1.0125 1.0099]) But the solution is complex-valued since your function h is com...

8일 전 | 0

답변 있음
symbolic solving system of non-linear equations
A system of 12 equations in 6 unknowns usually has no solution since it is overdetermined. Or can you extract 6 of the 12 equati...

8일 전 | 1

답변 있음
how to code a sum of function in matlab
Generate the elements that you want to sum in a matrix M of size (N,nt) where N is the index up to which you want to sum and nt ...

8일 전 | 1

| 수락됨

답변 있음
square matrix containing Chebyshev polynomials becomes singular when its size becomes greater than a certain value
t0 = 0; tf = 4; N = 75; syms x h = chebyshevT(0:N, x); A = zeros(N+1,N+1); d = zeros(N+1,1); for c=1:N+1 d(c,1) = ...

9일 전 | 1

| 수락됨

답변 있음
I was calculated using the Simpson 1/3 rule numerical method, why my running results doesn't appear in the command window?
Use ai=((b-a)/6)*(xa+4*(xb)+xc) %main equation instead of ai=((b-a)/6)*(xa+4*(xc)+xb) %main equation clear all; clc; %in...

10일 전 | 0

답변 있음
Laplace with Heaviside step function solving with ode45
You try to access Y(3), but you have only two differential equations for Y(1) and Y(2), I guess. And the "Y" must be "y" becaus...

10일 전 | 0

| 수락됨

답변 있음
How to find roots of a quartic function with unknown constant coefficients?
syms x a p = x^4 + 10.1*a*x^3 + 1.81*x^2 + 9*a*x + 0.81; sol = solve(p==0,'MaxDegree',4) vpa(subs(sol,a,1)) % E.g. for a = ...

10일 전 | 0

답변 있음
Se queda paralizado no corre todo el código y no me dice el error tampoco
Do you see why your code fails ? f=@(x)exp(sin(x))-x; f(-1) f(2) x=-1:0.01:2; plot(x,f(x)) You must start with two points ...

10일 전 | 0

답변 있음
Warning: Solutions are parameterized by the symbols: [z, z1], z1.
The "solution" you obtain with the code from above is just a repetition of your equations. Use instead clc clear V1 = 480 ; ...

10일 전 | 0

| 수락됨

답변 있음
Generate a group of random number
Maybe you mean a Truncated Normal Distribution: https://uk.mathworks.com/help/stats/prob.normaldistribution.truncate.html

10일 전 | 0

답변 있음
How to make a 2 parameter Generalized Pareto distribution? steps required
Use https://uk.mathworks.com/help/stats/makedist.html

10일 전 | 0

답변 있음
finding the solution of a matriciel Differential Equation
Your equations cannot be solved analytically using "dsolve". Use a numerical solver instead: J=0.024; p=2; f=50; ws=2*pi*f...

11일 전 | 0

답변 있음
I try to calculate the following integral
Wolfram Alpha gives an answer in terms of the Meijer G-function: https://www.wolframalpha.com/input?i=integration&assumption=%7...

11일 전 | 1

| 수락됨

답변 있음
Issue in solving two Non Linear Simultaneous Equations with multivariable function to optimize.
Give z a numerical value and solve for x and y using MATLAB's "fsolve".

11일 전 | 1

| 수락됨

답변 있음
Do not understand how to make my index exceed 1. (thank you)
In the first line of the for-loop, you set bstress to a scalar value. So in the statement if bstress(i) < NegEstress(i) bst...

13일 전 | 0

답변 있음
Error using vertcat Dimensions of arrays being concatenated are not consistent.
Maybe you mean something like this. I don't know whether it must read y(1) or y(2) at the place marked in bold letter in the ne...

13일 전 | 0

| 수락됨

답변 있음
Hello, I am making an algorithm to calculate temperature over steam but I don't know if the logic is well structured.
What your code does is solving R * T ./ (v - b) - a * alpha(T) ./ (v .* (v + b) + b .* (v - b)) = 0 for v. I don't think thi...

13일 전 | 0

답변 있음
terminate loop diverging to inf
I'm not sure, but I guess you meant something like this: NT = 1024; N = 2048; r = 0.9; omega = (sqrt(5)+1)/2; phi = 2*pi*om...

13일 전 | 0

| 수락됨

답변 있음
Sum of sines optimized starting points
https://uk.mathworks.com/matlabcentral/answers/511413-curve-fitting-tool-starting-points If your problem is linear in the fitti...

15일 전 | 0

| 수락됨

답변 있음
My index starts at the second element. I dont know why
Before MATLAB enters the for-loop, t(i), v(i) and x(i) are only defined for i = 1. In the loop, you also don't define t(i), v(i)...

15일 전 | 0

답변 있음
Rational function produced by the Curve Fitter App does not match the output graph
Look up the documentation to see what the option opts.Normalize = 'on'; means. The coefficients are used to approximate y vs...

16일 전 | 0

답변 있음
Badly conditioned equations - how can I centre and scale properly
Your problem is linear, but fitting data with an independent coordinate up to 1500 by a polynomial of degree 12 is nonsense. al...

16일 전 | 0

| 수락됨

답변 있음
Unable to perform assignment because the left and right sides have a different number of elements.
k1v and k2v both are vectors of size 1x60001, but they must be scalars in the assignment. Maybe you mean V(j+1) = V(j) + (k1v(...

17일 전 | 0

답변 있음
How can I simplify this expression using "abs" function?
You must determine the value for k0 where the expression 2*n^3 + 3*n^2 + n - 2*k^3 - 3*k^2 - k - k*(k+1)*(2*k+1) changes sign ...

17일 전 | 0

답변 있음
PDEPE function - BCFUN error
Use function [ptop, qtop, pbot, qbot] = bcfun(ztop, Ttop, zbot, Tbot,t) % hc and Hs are vectors ptop = hc.*(Ttop-env(:,1))+ e...

17일 전 | 0

| 수락됨

답변 있음
I need help with elemental wise operation for a first point iteration method
%% Input Variable Uinf = 11; % freestream veloctiy (m/s) R = 6.25; % Radius of Rotor (m) ...

17일 전 | 0

답변 있음
Solve ODE without initial condition
Your ODE is nonlinear. The symbolic toolbox is not able to find an analytical solution for it. You will only be able to solve it...

17일 전 | 0

답변 있음
this is my sample code and i have to plot 8 by 8 matrix in my actual code, the code itself is correct but it is taking forever,any other way to plot this please help
w=1:3; c44 = 44; n = numel(w); y = zeros(n,1); y1 = zeros(n,1); y2 = zeros(n,1); y3 = zeros(n,1); for j = 1:numel(w) y...

18일 전 | 0

더 보기