Answered
how to write ( a=(arctan(b/c)*pi*r)/90) in Matlab 2014
http://de.mathworks.com/help/matlab/ref/atan.html http://de.mathworks.com/help/matlab/ref/atan2.html Best wishes Torste...

11 years ago | 0

| accepted

Answered
Spline fitting with repeated X's
tx and tF must be monotonically increasing without repeating values, but this is the case for your data. The x and F arrays do n...

11 years ago | 1

| accepted

Answered
Using spline fit for different time graphs
If (tF,F) and (tx,x) are the column vectors in your above files, you can plot F versus x by tq=0:0.01:5.81; Fq = interp1...

11 years ago | 1

| accepted

Answered
2 variables, second order differencial equation system
Implement the following system with four unknown functions: dy(1)/dt = y(2) dy(2)/dt = -(B_1*y(2)+k_1*y(1)+B_2*(y(2)-y(...

11 years ago | 0

Answered
Need help with bisection method for finding zeros
Take a look at the code I provided under http://www.mathworks.com/matlabcentral/answers/258834-bisection-method-code-stops-af...

11 years ago | 0

| accepted

Answered
solve non linear ode equation with two boundary conditions
Use bvp4c. Best wishes Torsten.

11 years ago | 0

Answered
Trying to learn the use of PDEPE solver on Matlab
As long as the heat source qdot = 0, T(t,z)=300 (straight line) is the correct solution for your PDE. Best wishes Torsten....

11 years ago | 1

Answered
linear system boundary input output
Four conditions must be specified in order to fix a solution for your system. You fix three of them. One condition must be adde...

11 years ago | 0

Answered
In which quadrant is a point?
The four quadrants are characterized by the following conditions (if the center of the circle is at (0,0)): I quadrant: y<=...

11 years ago | 1

| accepted

Answered
Bisection method- code stops after one iteration
function c = findroot(f,a,b,e) % a is the initial value % b is the final value % e is the tolerance left = a; ...

11 years ago | 0

| accepted

Answered
How to find the curvature of the Points on the boundary
http://mathworld.wolfram.com/Point-LineDistance3-Dimensional.html Best wishes Torsten.

11 years ago | 0

| accepted

Answered
how to find variable between a range?
B = (A>0.4) && (A<0.8); (although I don't understand the last two ones in your answer vector). Best wishes Torsten.

11 years ago | 1

| accepted

Answered
Optimization with definite integration
1. Integrate the following functions over big_Omega using MATLAB's "trapz": Syy*S1y Syy*S2y (S1y)^2 S1y*S2y (S2...

11 years ago | 1

Answered
Optimization with definite integration
Why do you integrate with respect to big_omega whereas in the integral you use small_omega ? What is big_omega ? An interval ...

11 years ago | 0

Answered
Can some one solve a ODE and give me matlab code for "dx/dt=k(X-Xe)" where K,Xe both are time dependent
function main [T,Y] = ode15s(@myfun,[0 14],[3.93]); plot(T,Y(:,1),'-o') function dx = myfun(t,x) k=0.6854*exp(...

11 years ago | 0

Answered
Solving nonlinear equation using fsolve.
Use a for-loop in which you call fsolve (or fzero) 1000 times with T varying from 300 to 1300. Best wishes Torsten.

11 years ago | 0

Answered
Minimization of a definite integral
Create an .m file to define the function to be minimized and call MATLAB's "integral" within this function to evaluate the integ...

11 years ago | 0

Answered
ode15s - accept solution
Use something like T=y(1); if T < 0 T = 1e-3; end in the routine where you supply your gradients. Best wi...

11 years ago | 0

| accepted

Answered
optimization function in matlab
fun = @(x)(x(1)-5)^2+(x(2)+6)^2+x(3); x0 = [1 1 1]; Lb=[0 -1 2]; Ub=[1 2 3]; [x,fval,exitflag,output] = fmincon(fu...

11 years ago | 1

Answered
Why do I get a complex number of this integral?
Your function "fun" is complex-valued if y < 0 because of the y^(-0.5) term. Best wishes Torsten.

11 years ago | 0

Answered
Algebraic and differential equation
bvp4c cannot handle differential and algebraic equations simultaneously. Solvers from the ODE-Suite can. Take a look at the "...

11 years ago | 0

| accepted

Answered
I want to solve a 3rd order differential equation,and plot it,what will be the code?
Use MATLAB's ODE45. Best wishes Torsten.

11 years ago | 0

Answered
How can I Calculate the PDF and CDF of a product of two i.i.d exponentially distributed random variables with mean a and b respectively
You get F(x)=1-2*sqrt((lambda1)*(lambda2)*x)*K1(2*sqrt((lambda1)*(lambda2)*x)) f(x)=2*(lambda1)*(lambda2)*K0(2*sqrt((l...

11 years ago | 1

| accepted

Answered
solve a linear equation system with box constrains
min: sum_{i=1}^{n}{a_i^t*x-b_i}^2 Now replace x_j with lb_j*sin^2(y_j)+ub_j*cos^2(y_j) and use fminsearch to solve for the y_...

11 years ago | 0

| accepted

Answered
How can I Calculate the PDF and CDF of a product of two i.i.d exponentially distributed random variables with mean a and b respectively
Take a look at Robert Israel's answer under http://math.stackexchange.com/questions/729119/product-of-two-random-variables-th...

11 years ago | 1

Answered
How do I get A and B fitting coefficients after fitting a power law curve using fit function
http://de.mathworks.com/help/curvefit/coeffvalues.html Best wishes Torsten.

11 years ago | 9

Answered
f1(x)*g1(y)*dx+f2(x)*g2(y)*dy=0 Separation of variables
Use ode45 to solve dy/dx = -f1(x)*g1(y)/(f2(x)*g2(y)) Best wishes Torsten.

11 years ago | 0

| accepted

Answered
How to solve an equation of motion with the ode solver with time dependent components
function main x0=[0 1]; % first component is x(0), second x'(0) tspan=[0 20]; % timespan of integration [T,Y] =...

11 years ago | 0

Answered
False Position method for 2nd order Differential equation BVP
b30_target = 20; b0_high = 0; b0_low = -3; b30_high = 54.32; b30_low = -15.3; solved = 0; ...

11 years ago | 0

Answered
fitting a curve for multiple parameters and specific x values
f = sum((pow - (x(1)*frequency.^x(2) + x(3))).^2); Best wishes Torsten.

11 years ago | 0

Load more