Answered
how do i solve for 't' ?
Try eqn1 = 190.0 == 380.0-379.69109947074029287421462846085/2*(exp((-1000842.1052631578947368421052632+1000813.5574673472470455...

8 years ago | 0

Answered
How can I make an array of sin(1), sin(2), ... , sin(100)?
x=1:100; sinarray=sind(x)

8 years ago | 0

| accepted

Answered
The polynomial for the cubic spline is with x or (x-xi) ?
Read the chapter "pp - piecewise polynomial" under "Output Arguments" in https://de.mathworks.com/help/matlab/ref/spline.html

8 years ago | 0

| accepted

Answered
Cubic spline in Matlab works with natural boundary?
By default, MATLAB uses "not-a-knot" condition in end points: http://www.cs.tau.ac.il/~turkel/notes/numeng/spline_note.pdf

8 years ago | 1

| accepted

Answered
solving unknown variables in matrices
[4 -2 1; 1 1 1;4 2 1]*[k;l;m] = [4; 1; -4]

8 years ago | 1

Answered
I get this error:"This system does not seem to be linear."
The product of differentials in your equations (diff(theta1)*diff(theta3), e.g.) makes it impossible to use ODE45. I don't kno...

8 years ago | 2

| accepted

Answered
How to solve a system of two paired differential equations
function main [l,y]=ode45(@myODE,[0 8],[0.5,30]); plot(l,y(:,1)) end function dy = myODE(l,y) u=y(1); Tp=y(2); dTpdl = ...

8 years ago | 2

| accepted

Answered
How can I make a program which can determine the coefficients
https://de.mathworks.com/matlabcentral/answers/309182-how-to-get-the-equation-for-a-cubic-spline-from-cubic-spline-function htt...

8 years ago | 0

| accepted

Answered
Calculating K factor of a rice distribution
Use MATLAB's "mle" to fit K = A^2/(2*sigma^2) and OMEGA = A^2+2*sigma^2 for your data set: https://de.mathworks.com/help/stats/...

8 years ago | 0

| accepted

Answered
Need help to code the power Low fit using least square regression
function main X = [0.17,0.17,0.5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,3.5,3.5,4,4,4.5,6,6,10,10,10,12,15,18,24,24,24,24,24,24,24...

8 years ago | 0

Answered
Solving differential equation with varying Constant
function [dUdt]=eqn(t,U) dUdt=zeros(7,1); K=0.003; t_inter=0:99; T_actual=interp1(t_inter,G,t); Q_actual=interp1...

8 years ago | 1

Answered
Determine eigvector through eigvalue without using eig
By definition, the eigenvectors are the null space of A-lambda*I. Thus you can get the eigenvectors by null(A-lambda*eye(siz...

8 years ago | 1

Answered
Optimize the Max Min over two sets for the given function
max: eps s.c. [norm(a_j - sum_{i=1}^{i=k} lambda_i*b_i,2)]^2 >= eps (j=1,...,m) sum_{i=1}^{i=k} lambda_i = 1 lambda_i >=0 ...

8 years ago | 0

Answered
Speeding up solution to system of ODES
function main %Parameters %Heston Parameters S0 = 100; K = 100; T = 1; k = 2.5; sigma = 0.5; v0 = 0.06; vb = 0.06; ...

8 years ago | 0

| accepted

Answered
Solving coupled PDE-System for advection diffusion problem
f = [C3*DuDx(1)+C4*DuDx(2);C8*DuDx(1)+C7*DuDx(2)]; s = [C1*DuDx(1)+C2*DuDx(2);C6*DuDx(1)+C5*DuDx(2)];

8 years ago | 2

Answered
How to iterate until convergence?
function main R0 = 1.0e-6; R = fzero(@fun_iter,R0) end function res = fun_iter(R) % Undercooling calculation % Consta...

8 years ago | 0

Answered
generate data from arbitrary probability random function
n = 1000; ur = zeros(n,1); u = rand(n,1); f = @(x)7.6*exp(-2.1*x)+1.6*exp(-1.8*x).*cos(2.2*x+1.3)+9.4*exp(-2.04*x).*cos(x-2.6...

8 years ago | 0

Answered
How to write a code for an iteration?
fold = [1 5 10 15]; n= 100; for i=2:n f = [fold(1)+fold(2),fold(3)+fold(4),fold(1)-fold(2),fold(3)-fold(4)]; fold = f; ...

8 years ago | 0

Answered
How to find a smooth normal distribution curve
help histogram help mle

8 years ago | 0

Answered
Failure in initial nonlinear constraint function evaluation. FMINCON cannot continue.
The way you call fmincon, "t "should not be inside the list of input parameters to the constraint function.

8 years ago | 0

Answered
How to use linprog solver for some values of variables needs to have equal value
A = [-1 1 0 0 0 1 -2 1 0 0 0 1 -2 1 0 0 0 1 -2 1 0 0 0 1 -1 ]; B = [-1 0 0 0 0 ...

8 years ago | 0

| accepted

Answered
Birkhoff-von Neumann decomposition of nonnegative doubly stochastic matrices
https://birkhoff.readthedocs.io/en/latest/

8 years ago | 0

| accepted

Answered
Objective function for projectile
https://de.mathworks.com/matlabcentral/answers/435557-how-to-set-up-fmincon Seems to be a homework exercise.

8 years ago | 0

Answered
How to set up fmincon
function main v0=...; % start value for initial velocity theta0=...; % start value for angle target=[... , ...]; % target p...

8 years ago | 0

| accepted

Answered
Summation with resultant vector's index as upper limit
https://de.mathworks.com/help/matlab/ref/conv.html#bucr92l-2

8 years ago | 0

| accepted

Answered
fmincon requires only double
objective= @(t) (1-t)*a + t*b; %a,b given constants without the lines syms t and objective = double(f(t))

8 years ago | 0

Answered
How can get the value for each time step for a variable inside of a function?
Result = main function Result = main %Initial conditions Wads=0.045; Tads=80; Wdes=0.035; Tdes=27; Teva=7; Tcond=27; Mw...

8 years ago | 1

Answered
Is there any solution to generate an orthogonal matrix for several matrices?
https://de.mathworks.com/matlabcentral/fileexchange/46794-simdiag-m

8 years ago | 0

Answered
using dsolve to equation
syms x1(t) alpha p eqn = diff(x1,t) == -x1*alpha+p; cond = x1(0) == 0; x1Sol(t) = dsolve(eqn,cond)

8 years ago | 1

Answered
Implementing correct heat flux boundary conditions
m = 2; % specifies spherical symmetry for PDE solver r = linspace(0,r,100); t = linspace(0,t,100); sol_temp = pdepe(m,@ma...

8 years ago | 1

| accepted

Load more