Community Profile

# Stephan

##### Last seen: Today
1.145 total contributions since 2017

Knowledge means knowing where it is written...

Interested in:
- Optimization
- Mathematical Modelling
- Improvement of my programming skills

View details...

Contributions in
View by

calling a variable in another function
function [LookupTableFiles]=getaerotablelisting( FilePrefix, DirectoryName , filetype ) FileList = dir('DynamicData...

3 días ago | 0

Easily solved equation isn't being solved by 'solve'
There are 3 solutions, which you will find by setting the 'ReturnConditions' option to true: syms x A alpha h2m syms b positiv...

4 días ago | 1

| accepted

Undefined function 'ln' for input arguments of type 'double'. Sorry I kindly no idea what was wrong with the coding. Kindly help please ,Thanks a lots.
Change: F = inline('y*log(y))','x','y','z'); to: F = inline('y*log(y)','x','y','z'); also remove the error on the last line ...

5 días ago | 0

| accepted

Nonlinear system of equations
https://de.mathworks.com/help/optim/ug/fsolve.html function myEq b1=1000; b2=100; c=50; t=0.76; T=950; n=5; x0 = [1 1 ...

6 días ago | 1

| accepted

Error using GPU in Matlab 2020a for Reinforcement Learning
If you install Update 2 the problem should be solved: https://de.mathworks.com/support/bugreports/?release=R2020a&release_filte...

11 días ago | 2

| accepted

Submitted

Calculates values for Directional Movement System like J. Welles Wilder describes in his book 'New Concepts in Technical Trading...

How to remove 'e' from a matrix?
N(N<1e-8)=0; this will hard set all values smaller than 1e-8 to zero. >> format shorte >> N = [12, 0.24e-16, 9] N = ...

alrededor de 1 mes ago | 0

Solving System of 4 Non-Linear Equations
fsolve is a numerical solver - use vpasolve instead: syms A B C t0 eq1 = A*sin(2*B*pi*0.2 + 2*B*pi*(0 - t0)^2)+C - sin(2*pi*0....

alrededor de 2 meses ago | 0

| accepted

How to concatenate horizontaly and not vertically
use C = [C, RAIES]; V = [V, DATAS]; instead C = [C; RAIES]; V = [V; DATAS];

alrededor de 2 meses ago | 1

| accepted

How to use ode45 to model malaria?
tspan = [0 100]; y0 = zeros(1,4); [T,Y] = ode45(@malariaSEIRS, tspan, y0); figure(1) plot(T,Y) grid legend('S', 'E', 'I'...

alrededor de 2 meses ago | 0

Iam getting an error with the ODE45 function (line 90)and (line 115)?
clc clear y0=[0.01 0.5]; %enter the initial conditions. t0=[0 60] ; %enter the first and final time for the analysis. [t,x]=...

alrededor de 2 meses ago | 1

| accepted

insert zeros into vector
a = [1 2 3 4 5] b = zeros(4,numel(a)) result = reshape([a; b],1,[])

alrededor de 2 meses ago | 1

| accepted

I need help as soon as possible
Try to work with a table to make life easier: N=1:10; a=0;b=2;alp=0.5; f=@(t,y)y-t^2+1; yexact=@(y,t)(1+t).^2-0.5*exp(t); h...

2 meses ago | 2

Convert two vectors (x and y) to a square matrix ?
x = 0:0.01:6.28; y = sin(x); M = ones(size(x,2)); x_int = 1:size(x,2); y_int = ceil(y * size(y,2)/(abs(min(y))+abs(max(y...

2 meses ago | 1

| accepted

Fit to find the value of an unknown parameter
Try to optimize with least squares: A=0.1; B=0.5; C=100; % Range for H lb = 0.0001; ub = 0.05; best_H = fminbnd(@(H)s...

2 meses ago | 0

| accepted

Describing the motion of a composite body using system of differential equations
Solve numeric: syms y(t) z(t) Dy = diff(y,t); Dz = diff(z,t); eqns = [diff(y,t,2) == (29.4*cos(z)+4*Dz*Dz)*sin(z)/(1+3*sin(...

2 meses ago | 0

| accepted

Making a Video from Images
https://de.mathworks.com/help/matlab/import_export/convert-between-image-sequences-and-video.html

3 meses ago | 0

how to solve the non-linear equation
To solve for V as a function of Q: syms V Q D=1050; c=25; A=1000; B=1000; v=1.077; gamma =0.1; beta =0.1; eq = V*c*(1...

3 meses ago | 0

Problem with solve function
syms s vs v1 v2 vo s R1 R2 R3 Rc1 Rc2 gm1 gm2 gm3 gmc1 gmc2 C1 C2 C3 Cc1 Cc2 k1 k2; % Nodal Analysis Equations eq1 = -gm1*vs +...

3 meses ago | 0

| accepted

Solving three simultaneous equations for analytical solution
Keep it short and simple + use "*" for multiplication operations: syms k2 k1 Rk1 R BR s h a l2 l1 t1 t2 bh d eq(1) = k2==(BR*(...

3 meses ago | 0

| accepted

Plotting Equation with straight line
<https://de.mathworks.com/help/matlab/ref/fplot.html |*fplot*|>

3 meses ago | 0

bvp4c error
In your case bvp5c is suitable to solve your problem, without changing the timespan: solinit = bvpinit([0,1],[0,0]); sol = bvp...

3 meses ago | 0

How can I make the wave in the negative part disappear?
More resolution for the values + logical indexing: t= linspace(0,6,5000); y=sin(pi*t); plot(t(y>=0),y(y>=0))

3 meses ago | 1

| accepted

How to convert cells within cells to double.
Due to the different lengths of all the entries you can not easily store them in a matrix, but as a column vector it will work e...

3 meses ago | 0

| accepted

How to solve Integer Linear program
Work through this examples: https://de.mathworks.com/help/optim/ug/intlinprog.html#bts3f9f-4

3 meses ago | 0

| accepted

Storing indices from a matrix
A= [ 1 2 3 -4 6 -2]' B = find(A<0) A = 1 2 3 -4 6 -2 B = 4 6

3 meses ago | 0

| accepted

how to do Shifting of text
A = "volatile uint8_T AtomcMduleCnt_Z_Pt = 7U;/* Atomic Module Count in Pack */" B = insertAfter(A,"uint8_T"," @") A = ...

3 meses ago | 0

rational curve fitting function?