Answered
I want to calculate a zero of a function, can anyone help me ?
https://de.mathworks.com/matlabcentral/fileexchange/33748-bisection-method?focused=5203297&tab=function Best wishes Torste...

8 years ago | 0

| accepted

Answered
Hello, is it possible to use a non -explicit function in de file ode23
f=@(x,h)(-(10*h)/b(x)-0.001)/(((b(x)^2)*9.81*h^3/(1200^2))-1); b=@(x)10*x-100; [tv1 f1]=ode23(f,[0 10],1); b=@(x)...

8 years ago | 0

Answered
why matlab Make a mistake in calculating sin and cos while teta in wiling to zero ?
https://de.mathworks.com/help/matlab/matlab_prog/floating-point-numbers.html Use symbolic maths instead of numerical: http...

8 years ago | 0

Answered
How to get a variable to change for a specific interval?
k = -12:1:20; AR = 1:1:10; AOA = zeros(length(k)); CL = zeros(length(k),length(AR)); for j = 1:length(AR) ...

8 years ago | 0

Answered
Double integration in matlab
Use MATLAB's "int" twice: syms a x1 y1 x y z lambda f = exp(-(x1^2+x2^2)/a^2)*exp(1I*pi/(lambda*z)*((x-x1)^2+(y-y1)^2));...

8 years ago | 0

| accepted

Answered
matlab vpasolve function not returning correct answer
Use Eq=Q==(A/n)*S^(0.5)*(R^2)^(1/3); instead of Eq=Q==(A/n)*S^(0.5)*R^(2/3); Best wishes Torsten.

8 years ago | 0

Answered
How to find parameters in a 3rd order equation
Y=Y(:); I=ones(numel(Y),1); X1=X; X2=X1*X; X3=X2*X; X1=X1(:); X2=X2(:); X3=X3(:); A=[I X1 X2 X3]; p...

8 years ago | 0

Answered
Parameter estimation by minimizing distance between two vectors.
If you have a function depending on certain parameters to calculate the theoretical moments, you can use a fitting tool (e.g. "l...

8 years ago | 0

Answered
Bisection method Need Help!
To call a function or a script, just write its name: Bisection(0,1,g,0.01) not f = @Bisection(0,1,g,0.01) Best ...

8 years ago | 0

Answered
How to do a loop to evaluate a function with a varying value?
chi=0:0.01:1; Omega=4; Cs=2; lambda0=5; x=(the expression from above); plot(chi,x) Best wishes Torsten. ...

8 years ago | 0

Answered
Would someone tell how to write the code in matlabfor the function below with x being a vector X=[ x1,x2...,xn], the function is on the attached document.
product = exp(-sum((x-mu).^2)/(2*sigma^2))/(sqrt(2*pi)*sigma)^N Best wishes Torsten.

8 years ago | 0

Answered
Vectorized array operation which depends on previous array value
a(2:end)=b(2:end)+a(1:end-1).*c(2:end); Best wishes Torsten.

8 years ago | 0

Answered
Syms function optimization. How to solve function (NLE) for minimum value?
fun=@(D,s,n,n_pass) 1000*....; x0=[1 1 1 1]; [x,fval,exitflag,output] = fminunc(@(x)fun(x(1),x(2),x(3),x(4)),x0) Be...

8 years ago | 0

Answered
Undefined function 'int' for input arguments of type 'double'.
Use "trapz" instead of "integral". Best wishes Torsten.

8 years ago | 0

| accepted

Answered
How do I write this in matlab?
syms x int(1/(cos(2*x))^2) Best wishes Torsten.

8 years ago | 0

| accepted

Answered
How to solve an integral with a limit?
syms t L x_squared = (4*sin(1040*pi*t) + cos(3120*pi*t))^2; P = limit(1/(2*L)*int(x_squared,t,-L,L),L,Inf); Best wish...

8 years ago | 2

Answered
ODE with a cubic root, ODE45 can't solve
Instead of x^p, write sign(x)*(abs(x))^p. Best wishes Torsten.

8 years ago | 2

| accepted

Answered
what is the 5th column in line data matrix "1/2 B"?
Fifth_column = 1/2*B(:,5); Best wishes Torsten.

8 years ago | 0

Answered
Expanding a function in power series
help taylor Best wishes Torsten.

8 years ago | 1

| accepted

Answered
could anybody help me how to solve the error in the following code
Initialize q to a value (e.g. 1) at the beginning of your code. Best wishes Torsten

8 years ago | 0

Answered
How to solve minimization problem for matrix system
And you are sure that one of the 11*11*11 combinations of possible values for alpha, beta and gamma give you the prescribed valu...

8 years ago | 0

| accepted

Answered
could anyone help me to solve it.
I suspect that your loop over i starts at i=1. This will most probably cause problems evaluating P(1:i-1). Try if the code...

8 years ago | 0

Answered
Array operations- vectorization. Error with matrix dimensions.
https://de.mathworks.com/help/matlab/ref/meshgrid.html Best wishes Torsten.

8 years ago | 0

Answered
LINPROG stopped because some objective or constraint matrix coefficients are too large in magnitude
What about using row vectors for lb, ub, f, beq and bineq ? And bineq(2) = Inf is not allowed. Best wishes Torsten.

8 years ago | 1

| accepted

Answered
How to get the mean of a function when the input of the function is a distribution?
I think you will have to go back to the general definition of the mean of a probability distribution. Best wishes Torsten....

8 years ago | 0

Answered
is it possible to solve this coupled pde equations using pdepe solver?
If you add diffusivity to the mass balance and conductivity to the energy balance of the gas phase, it should be possible to use...

8 years ago | 0

Answered
I am given some differential equation of first order and it requires to be solved by Runga Kutta method. please tell me how can i do it?
https://www.google.de/search?ei=zclYWsb-M569gAbX2YzgAw&q=matlab+%26+Runge-Kutta+scheme&oq=matlab+%26+Runge-Kutta+scheme&gs_l=psy...

8 years ago | 0

Answered
How to make and plot a function with a summation?
Is this the partial Taylor series of a certain function f ? In this case, you could use f=...; n=...; fn = taylor(...

8 years ago | 0

Load more