Answered
What is this error mean?
http://www.mathworks.com/matlabcentral/answers/92499-why-do-i-receive-a-message-stating-error-finding-installer-class-when-tryin...

10 years ago | 0

Answered
I tried to solve fourth order differential equation using bvp4c.However, there seems to be an error while running it.Could you please let me know the potential mistake in the program?Thanks
function main global yright figure (1); hold on; yright=0.0; l=17.6e-6; P=1e-6; E=1.44e9; h=0.1*l; ...

10 years ago | 0

Answered
I tried to solve fourth order differential equation using bvp4c.However, there seems to be an error while running it.Could you please let me know the potential mistake in the program?Thanks
You could test whether it works to save yb(1) to a global variable in "cantileverbc" and to access this variable in "cantilevero...

10 years ago | 0

| accepted

Answered
Getting subscripted dimension error while saving a variable in a loop. Now sure what my mistake is!
The length of tspan for iter=1 is half the length of tspan for iter=2. Thus the length of the "sol" vector for iter=1 is half...

10 years ago | 0

| accepted

Answered
In fmincon function, how can I impose non-strict constraints?
Strict constraints (like a<1 or a+b<1) don't make sense in optimization. Usually, you can only guarantee solutions over compa...

10 years ago | 1

Answered
Solution for closed form integration for the given expression with limits 0 to Infinity
No closed form solution exists. You will have to use numerical tools (like MATLAB's integral). Best wishes Torsten.

10 years ago | 0

Answered
pdepe the problem of negative concentrations
My guess is that you can't prescribe a constant flux of Li+ Ions at x=L. The flux must be proportional to the ion-concentration ...

11 years ago | 0

Answered
how to solve this equation in matlab? Please help
Use MATLAB's bvp4c to solve y1' = y2 y2' = a*sin(y1)*cos(y1) (a=V^2/V_th^2*Pi^2/L^2) with boundary conditions...

11 years ago | 0

| accepted

Answered
pdepe the problem of negative concentrations
In this case, pr and qr must be defined as qr = 1 pr = -D_Li*I/(F*A) Best wishes Torsten.

11 years ago | 0

| accepted

Answered
sommation de deux vecteurs
S=V+U'; or S=V'+U; Best wishes Torsten.

11 years ago | 1

| accepted

Answered
ode45 calculation in an interval until y reaches a determined value
The solution to your ODE is L(t)=-a/b + (a/b+L(0))*exp(b*t) with a = 0.0083737529988709, b= 9.321211716127*10^(-5) Now ...

11 years ago | 0

Answered
double type fzero error in vapor pressure calc
And - is *double(Pguess)* a scalar or a vector of length 2 ? No, it isn't. As the second argument in the call to fzero, you h...

11 years ago | 0

Answered
Spatial discretization has failed. Discretization supports only parabolic and elliptic equations, with flux term involving spatial derivative.
As Bill already pointed out, pdepe is not designed to solve PDEs without 2nd derivative terms. You will have to discretize th...

11 years ago | 0

Answered
How to use more than one variable as an input for a NonLinear Constraint function with FMINCON
Pass your constraint function as x = fmincon(fun,x0,A,b,Aeq,beq,lb,ub,@(x)ConstraintsOR1(x,e,t),options) to fmincon. ...

11 years ago | 1

| accepted

Answered
What is the error here? Euler Method for 2nd order equations?
function[T,Y] = euler(f,a,b,ya,h) a = 0; b = 1; T = a:h:b; Y = zeros(1,length(T)); *Y(1) = ya;* for k =...

11 years ago | 0

| accepted

Answered
Problems with 1D heat diffusion with the Crank Nicholson method
rho and ce are undefined. Thus b is undefined. Best wishes Torsten.

11 years ago | 1

| accepted

Answered
definite integral with variable upper limit ?
Example: syms x z int(2*x, [0, z]) Best wishes Torsten.

11 years ago | 2

Answered
Finding solutions to equations
k0=1.0; fun_int=@(x,k) k.*x.^2./(0.2+k); fun=@(k) integral(@(x)fun_int(x,k),0,2,'ArrayValued',true)-(1+k); k=fzero(fu...

11 years ago | 0

| accepted

Answered
How do I evaluate the inifinite sum using a while loop?
Your argument is correct. Here is your modified code: u(1) = 0.5; u(2) = 0.6; S(1) = u(1); S(2) = u(1) + u(2); ...

11 years ago | 0

| accepted

Answered
Generate all cominations?
P = dec2bin(0:(2^24)-1)-'0'; P(P==0) = Val1; P(P==1) = Val2; Best wishes Torsten.

11 years ago | 0

| accepted

Answered
How to graph this function?
plot(y,(.65*y)-(0.65*y.^2/10.5))-(((1.2*(y.^2))./(1+(y.^2)))); Best wishes Torsten.

11 years ago | 0

| accepted

Answered
I'm trying to solve F1 & F2 that are the functions of u &d by using of fsolve.but in F1 &F2 there is other functions of u & d. and I dont know how i can use nested function to solve F1 and F2.
function main Sb=...; S=...; St=...; Pcp=...; den=...; hp=...; x0 = [2;1]; options = optimoptions('fso...

11 years ago | 0

| accepted

Answered
Is matlab not considering L Hospital's rule, while calculating limits? Becoz there r two different answers of the function f=(1 - (cos(x)))/((2* ((x^3)))* sin(x)).
Plot the function and you'll see that MATLAB's answer is correct. The function behaves like 1/x^2 near x=0. Best wishes ...

11 years ago | 0

| accepted

Answered
find a maximum matrix of three matrices
D = max(max(A,B),C) Best wishes Torsten.

11 years ago | 2

| accepted

Answered
i need code of this eigen value problem
http://de.mathworks.com/help/matlab/ref/polyeig.html Best wishes Torsten.

11 years ago | 0

| accepted

Answered
Discrete time system difference equation
u=[1 -2 3 -4]; y(1)=1; y(2)=1; for k=2:4 y(k+1)=-2*y(k)+3*y(k-1)+1.5*u(k)+4*u(k-1); end y(5) Best wish...

11 years ago | 2

| accepted

Answered
ode45: can I reverse tspan for better initial conditions?
It's a valid method to integrate backwards, and there is no loss in precision. Usually such problems as the one above are bou...

11 years ago | 2

Answered
How to solve equation with n data and select the maximum value of each answer?
answer(1,:) = 100 + sqrt(100^2-A(1,:)); Best wishes Torsten.

11 years ago | 0

| accepted

Answered
suppose that an is an increasing sequence and bn is a decreasing sequence with lim (bn - an) = 0. Prove that lim an and lim bn both exist and lim an = lim bn
Hint: an = bn - (bn-an) <= b1 - (bn-an) bn = an + (bn-an) >= a1 + (bn-an) and bn-an -> 0 Thus an is bounded f...

11 years ago | 0

Answered
How to solve for a max area given a set parameter?
Take a look at my answer under http://www.mathworks.com/matlabcentral/answers/267427-how-can-you-maximize-area-of-a-rectangle...

11 years ago | 0

Load more