Answered
Which routine to be used for numerically solving a three-order equation represented in an array?
For x fixed, you know a, b and c. So for this fixed x, determine y(x) as y=roots([1 a b c]) Best wishes Torsten. ...

11 years ago | 0

Answered
Solving Optimisation Problem with Rank Constraint in MATLAB
1. Solve y=pinv(C)*d 2. Determine the best rank-1 - approximation x to y as discussed in the previous thread: http://www.m...

11 years ago | 2

| accepted

Answered
Unable to compute roots for polynomial equation
Use r=roots(D); disp(eval(r)); Best wishes Torsten.

11 years ago | 0

| accepted

Answered
Representing a matrix as a product of two matrices in MATLAB
<https://en.wikipedia.org/wiki/Low-rank_approximation> In your case, X=U*Sigma*U^H. Consequently, u1*sigma1*u1^H where u1 ...

11 years ago | 2

Answered
How can i find solution for un integral of bessel functions
Make "func" a function handle of the variable u, not a numerical value. And use "integral" instead of "int". See the docum...

11 years ago | 1

| accepted

Answered
lsqcurvefit does not change the initial values
Try fitting to the function a*(1-exp(-b*xdata)) with unknown parameters a and b. From a and b you can determine x(1), x(2) an...

11 years ago | 0

Answered
Numerical integral at irregular intervals of scattered data
First use cumtrapz for cumulated integration, then use interp1 to interpolate to your vector: z=cumtrapz(x,y); zinter=in...

11 years ago | 0

| accepted

Answered
Fitting an experimental data to the finite difference approximated solution
Use MATLAB's pdepe to solve the heat equation for different thermal conductivities and see which curve fits best your experiment...

11 years ago | 0

| accepted

Answered
approach to solve coupled differential equiations
help bvp4c Best wishes Torsten.

11 years ago | 0

Answered
solve second degree differential equation
help pdepe Best wishes Torsten.

11 years ago | 0

Answered
Fix step bvp4c
From the documentation of bvp4c: Use the function deval and the output sol of bvp4c to evaluate the solution at specific poin...

11 years ago | 1

Answered
Estimating constrained transformation matrix
help lsqcurvefit Best wishes Torsten.

11 years ago | 0

Answered
Symbolic differential equation using dsolve. one of the constraints at t=infinity. i.e. y(t) @ t=Inf = a constant. (or y(Inf) == k) How do I do this?
Set the condition at t=R. In the solution to this problem, let R approach infinity. Best wishes Torsten.

11 years ago | 0

Answered
Multi initial gusset at bvp
Use an if-statement depending on the spatial coordinate: Example: solinit = bvpinit(linspace(0,pi,10),@mat4init) ...

11 years ago | 0

| accepted

Answered
how to set additional constraints on parameters in lsqcurvefit
Sure. Use only one parameter (e.g. kb) instead of two (ka and kb) and write kb*10^(-7.5) everywhere for ka in your code. Best...

11 years ago | 1

Answered
How do i resolve this problem ??????
function main tspan = [0 1]; [t1,x1]=ode45(@(t,x)example(t,x,1),tspan,[0 9]); tspan = [1 4]; [t2,x2]=ode45(@(t,x)e...

11 years ago | 0

| accepted

Answered
Hi,I don't understand why this is not right,I am a completely new learner!
T=1; lambda=0.4; gamma=1.2; theta=0.1; x=1:100; t=0.1; U=lambda/(0.5*theta^2+lambda); V0=U*exp(-ga...

11 years ago | 0

Answered
How to solve differential equation with MATLAB
Does this work ? syms x eqn = 1.5*log(x)+3886/x-19 == 0; sol = solve(eqn,x); The result should be some expression ...

11 years ago | 0

Answered
Error "Not enough input arguments" error in Line 5
Hi= 10; %Initial Height Ui= 7.5; %Initial Speed THi= -4; %Initial Theta D= 10; % Drag L= 15; % Lift m= 40; %mas...

11 years ago | 0

| accepted

Answered
what is the function which calculate the area under curve like ''normspec '' ?
x = gevinv(0.01,paramEsts(1),paramEsts(2),paramEsts(3)); gives you the 99% x-value. Best wishes Torsten.

11 years ago | 1

| accepted

Answered
cannot find the error in my code
It seems you call random_rayleigh within random_rayleigh more than 500 times ... Best wishes Torsten.

11 years ago | 0

Answered
ODE 45 too many input arguments
Use [t,y]=ode45(@rhs,[VV],[0 0]); Best wishes Torsten.

11 years ago | 0

Answered
How to put boundry limits in pde solver ?
pl = ul - 1.0; ql = 0.0; pr = ur - exp(-t); qr = 0.0; Best wishes Torsten.

11 years ago | 0

Answered
Error Using "bvp4c" - "a singular Jacobian encountered"
The general solution of your equation is y(x)=c1*log(x)+c2-x^2/4 with c1, c2 to be determined from the boundary conditi...

11 years ago | 0

Answered
Integrate with two dependent variables and solve a system
Use MATLAB's fzero on the function f=@(w)integral ( rho/2*(omega.^2*r^2 + w.^2)* ( 4 - 2.35294*(r/50 - 0.1)) *( mult_Cl + m...

11 years ago | 0

Answered
A single line of MATLAB code that computes the mean and standard deviation of a 1‐dimensional array named A of numbers???
m=sum(x)/numel(x); s=sqrt(sum((x-m).^2)/(numel(x)-1)); ? Best wishes Torsten.

11 years ago | 1

| accepted

Answered
How can calculate this formula with matlab?
sum_total=0.0; for i=1:(N-1) sum_j=0.0; for j=(i+1):N sum_j = sum_j + w(j)*sigma(j); end sum_to...

11 years ago | 0

Answered
Error using ODE 45
Does this work ? function main clc; clear all; close all; Q=1; [t,x]=ode45(@(t,x)rhs(t,x,Q),[0 30],[0 0...

11 years ago | 0

Answered
How do I combine 2 functions?
x=horzcat(x1,x2); y=horzcat(y1,y2); plot(x,y) Best wishes Torsten.

11 years ago | 0

| accepted

Load more