Community Profile

photo

Stephan


897 total contributions since 2017

Knowledge means knowing where it is written...

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

Contact

Stephan's Badges

  • 12 Month Streak
  • Guiding Light
  • Introduction to MATLAB Master
  • Thankful Level 2
  • Knowledgeable Level 4
  • Revival Level 3
  • Speed Demon
  • Creator
  • First Answer
  • Commenter
  • Promoter
  • Solver

View details...

Contributions in
View by

Answered
problem finding the coordinates of point in stainer tree problem by brute force
your if is ending 3 lines to early. No matter what happens, you get a = x(end) and b = y(end). the m you get is the last that fu...

6 hours ago | 1

Answered
GA with integer constraints
The genius answer is given in the documentation of ga: https://de.mathworks.com/help/gads/mixed-integer-optimization.html#bs1ci...

21 hours ago | 0

Answered
Calculate Area of 3D points
If all points on a plane are in 3D space, you could create a polyshape object by using <https://de.mathworks.com/help/matlab/ref...

2 days ago | 0

Answered
How will I reduce the time it takes to calculate data?
<https://de.mathworks.com/help/matlab/performance-and-memory.html>

2 days ago | 0

Answered
How to solve delayed reaction diffusion equations by Mathlab?
<https://de.mathworks.com/help/matlab/delay-differential-equations.html?s_tid=CRUX_lftnav>

2 days ago | 0

| accepted

Answered
what functionalDerivative returns is a 1*1 symfun, not a vector
syms u(x) v(x) H = u^2*diff(v,x)+v*diff(u,x,x); D(1) = functionalDerivative(H,u) D(2) = functionalDerivative(H,v)

2 days ago | 0

| accepted

Answered
Clustering data into specific range
check out the data type <https://de.mathworks.com/help/matlab/ref/categorical.html categorical>

2 days ago | 0

| accepted

Answered
How to define binary variables in an optimization problem?
usually you set them to be integers and bound them between 0 and 1

2 days ago | 0

Answered
How can I solve a system of ODEs with boundary conditions
<https://de.mathworks.com/help/matlab/boundary-value-problems.html?s_tid=CRUX_lftnav>

3 days ago | 0

| accepted

Answered
How do i merge graphs in bvp4c format ?
hold on for k = 1:4; Ha = k; init = bvpinit(linspace(-1,1,20),[0 0]); sol=bvp4c(@(x,y)rhs_bvp(x,y,Ha),@bc_bvp,init); x = ...

3 days ago | 0

Answered
I have a multi dimension matrix (:,:,:) that I need to export to excel
If it would be acceptable to have all matrices in one excel sheet, you could use: A = (reshape(your_matrix,5,[],1))'

3 days ago | 0

Answered
I have 100 data scattered across 100 X 100 size plot. I need to partition the plot into four sub-sections across the center. Can anyone help me.
starting from R2018b you can use <https://de.mathworks.com/help/matlab/ref/xline.html xline> and <https://de.mathworks.com/help/...

3 days ago | 0

| accepted

Answered
how to make loop in
%km = 72x1 (matrix) x = zeros(25,1); % preallocate for x=1:25 cx(x) = Km(x,1)+Km(x+1,1)+Km(x+6,1)+Km(x+7,1)+Km(x+36,1)+Km(x...

3 days ago | 0

| accepted

Answered
Are the operators like " .* ", " ./ " won't work in simulink?
It is a parameter: <https://de.mathworks.com/help/simulink/slref/product.html#brofebg> <https://de.mathworks.com/help/sim...

3 days ago | 0

| accepted

Answered
solving two symbolic equations simultaneously
syms x y a b eq1=a==x+y; eq2=b==x-y; [xsol,ysol]=solve([eq1 eq2],[x y]) sol.x sol.y or: syms x y a b eq1=a==x+y;...

4 days ago | 1

| accepted

Answered
Function definitions are not permitted in this context
Add the missing end after line 148 (from your outer while loop) to get rid of this error. This end is missing, so Matlab...

4 days ago | 0

Answered
how to solve these equations
for only real solutions: syms a b c d real eq(1) = a^2+b*c==-1; eq(2) = a*b+b*d==1; eq(3) = a*c+c*d==-1; eq(4) = d^2+b*...

6 days ago | 0

Answered
how to get combination of elements in a matrix in pair order
A=[3 5 6 7 8]; b = nchoosek(A,2) b = 3 5 3 6 3 7 3 8 5 6 ...

6 days ago | 0

| accepted

Answered
Can I using Genetic Algorithm to solve a integer quadratic problem?
<https://de.mathworks.com/help/gads/solving-a-mixed-integer-engineering-design-problem-using-the-genetic-algorithm.html>

8 days ago | 0

Answered
how to convert .mat file to .m file in matlab R2019a version
You can not convert *.mat to *.m files. The *.mat format saves variables from workspace and the *.m file format saves Matlab cod...

9 days ago | 0

Answered
Rearranging an equation containing the linsolve function
Residuals = CoefficientsMatrix*A

9 days ago | 0

| accepted

Answered
sum matrix column to get another matrix
G1 = squeeze(sum(G,2));

9 days ago | 0

| accepted

Answered
remove Nan from a row vector using if statement only
Datan=ch(~isnan(ch));

11 days ago | 0

Answered
Solve Function - Having Difficulties
syms x xsol = solve(str2sym('x+4==2'),x)

13 days ago | 1

| accepted

Answered
error using sym/subs with logical operation
1 You only substitute x1 - you have to substitute them both. Try: syms x1 x2 aa= x1 == 0 & x2 == 0 aa = subs(aa,[x1 x2], [0....

13 days ago | 1

| accepted

Answered
how i can use roots in matlab
RHS has to be zero, then put the coefficients in descending order into a vector - read here: https://de.mathworks.com/help/matl...

15 days ago | 0

| accepted

Answered
Evaluating a symbolic expression numerically without invoking the syms command
Save them as function handle in your .mat file. This allows you to use them numerical. <https://de.mathworks.com/help/symboli...

16 days ago | 0

| accepted

Answered
Can genetic algorithm be nested?
It should be possible in one single call of ga. In this case nvars would be 2*numel(q) and you have to set the correct bounds an...

19 days ago | 0

Answered
How can I determine the indices and length of consecutive non-NaN values in an array?
1. FInd the indexes: B = find(isnan(A)) 2. To find consecutive blocks you could use the diff function on a logical array: C =...

19 days ago | 1

| accepted

Load more