105 total contributions since 2017

Knowledge means knowing where it is written...

Interested in:

- Optimization

- Mathematical Modelling

- Improvement of my programming skills

Answered

Anyway to reduce the precision of solving symbolic equations?

Hi, the standard number of digits when using vpa (x) is 32. You can decrease this value by using: digits(d) a...

Anyway to reduce the precision of solving symbolic equations?

Hi, the standard number of digits when using vpa (x) is 32. You can decrease this value by using: digits(d) a...

1 day ago | 0

Answered

I can't create symbolic variable in matlab

Hi, there are some Problems since the Windows update regarding symbolic toolbox in 2017b & 2018a. See here: <https://de.ma...

I can't create symbolic variable in matlab

Hi, there are some Problems since the Windows update regarding symbolic toolbox in 2017b & 2018a. See here: <https://de.ma...

2 days ago | 0

| accepted

Answered

Symbolic Math Toolbox - Crash

Hi, there are some Problems since the Windows update regarding symbolic toolbox in 2017b & 2018a. See here: <https://de.ma...

Symbolic Math Toolbox - Crash

Hi, there are some Problems since the Windows update regarding symbolic toolbox in 2017b & 2018a. See here: <https://de.ma...

2 days ago | 0

Question

Setup discrete values for decision variables in optimization problems

Hi, the design of assemblies sometimes raises the question of whether, e.g. a connection should be made with less large screw...

5 days ago | 1 answer | 0

Answered

Mupad won't work after windows 10 april 2018 update

Hi, there are some Problems since this update. See here: <https://de.mathworks.com/support/bugreports/1755918> Meanwh...

Mupad won't work after windows 10 april 2018 update

Hi, there are some Problems since this update. See here: <https://de.mathworks.com/support/bugreports/1755918> Meanwh...

5 days ago | 0

| accepted

Answered

Help solving a system of differential equations

Hi, does this work for your purpose? x1=0.3; x3=0.9; y1=0.4; y3=0.8; A=10; p=10; syms X_1 X_...

Help solving a system of differential equations

Hi, does this work for your purpose? x1=0.3; x3=0.9; y1=0.4; y3=0.8; A=10; p=10; syms X_1 X_...

5 days ago | 1

| accepted

Answered

Help solving a system of differential equations

Hi, did i understand right: x1=0.3; x3=0.9; y1=0.4; y3=0.8; A=10; p=10; syms X1 X2; num =...

Help solving a system of differential equations

Hi, did i understand right: x1=0.3; x3=0.9; y1=0.4; y3=0.8; A=10; p=10; syms X1 X2; num =...

5 days ago | 1

Answered

Where to find the total execution time in matlab

Hi, the toc toc command measures the elapsed time between these both commands. Its your turn where to set them. tic ....

Where to find the total execution time in matlab

Hi, the toc toc command measures the elapsed time between these both commands. Its your turn where to set them. tic ....

7 days ago | 0

Answered

error calling a function

Hi Susan, you should finish your switch case command with an end command. function f = Mu(t,y,ti,tf,n) m1 = 55; m...

error calling a function

Hi Susan, you should finish your switch case command with an end command. function f = Mu(t,y,ti,tf,n) m1 = 55; m...

8 days ago | 0

| accepted

Answered

Please help!!!!First input must be a function handle

Hi try this: syms x; a = -5; b = 5; f = @(x)1/(1+x^2); n=57; h = (b-a)/(2*n); k = linspace(a,b,2*(n+1)...

Please help!!!!First input must be a function handle

Hi try this: syms x; a = -5; b = 5; f = @(x)1/(1+x^2); n=57; h = (b-a)/(2*n); k = linspace(a,b,2*(n+1)...

8 days ago | 1

Answered

Optimization of objective function with multiple constraints and variables

Hi, using an anonymus function works here: P = 6000; E = 30e6; G = 12e6; L = 14; fun=@(x)(1+0.10471...

Optimization of objective function with multiple constraints and variables

Hi, using an anonymus function works here: P = 6000; E = 30e6; G = 12e6; L = 14; fun=@(x)(1+0.10471...

9 days ago | 0

| accepted

Answered

How can i plot a graph with different y values for a particular x value?

Hi, x(1:3) = 0.2; y = [3 5 7]; plot(x,y, '*', 'color', 'r') gives you: <</matlabcentral/answers/uploaded_fi...

How can i plot a graph with different y values for a particular x value?

Hi, x(1:3) = 0.2; y = [3 5 7]; plot(x,y, '*', 'color', 'r') gives you: <</matlabcentral/answers/uploaded_fi...

10 days ago | 1

Answered

Fit multiple curves in one graph using least squares

Hi, use this example for your purposes: % load some example data load census % create second sata set cdate...

Fit multiple curves in one graph using least squares

Hi, use this example for your purposes: % load some example data load census % create second sata set cdate...

10 days ago | 0

Answered

Fit multiple curves in one graph using least squares

Hi, use the fit function for this - see here: <https://de.mathworks.com/help/curvefit/fit.html?s_tid=doc_ta#bto2v...

Fit multiple curves in one graph using least squares

Hi, use the fit function for this - see here: <https://de.mathworks.com/help/curvefit/fit.html?s_tid=doc_ta#bto2v...

11 days ago | 0

Answered

Selection function in genetic algorithm

Hi, the SelectionFcn ga uses, will be the binary tournament selection function. All other settings are being overrided when y...

Selection function in genetic algorithm

Hi, the SelectionFcn ga uses, will be the binary tournament selection function. All other settings are being overrided when y...

11 days ago | 0

Answered

fmincon: nonliner constraint

Hi, i assume, negative values are not allowed. A share of -2 of the stock represented by variable 4 makes no sense. If tha...

fmincon: nonliner constraint

Hi, i assume, negative values are not allowed. A share of -2 of the stock represented by variable 4 makes no sense. If tha...

11 days ago | 1

Answered

Problem with symbolic tool

Hi, the problem is known - see here <https://de.mathworks.com/matlabcentral/answers/399099-matlab-hang-on-busy-when-using-s...

Problem with symbolic tool

Hi, the problem is known - see here <https://de.mathworks.com/matlabcentral/answers/399099-matlab-hang-on-busy-when-using-s...

13 days ago | 0

Answered

cost function in classification learner app

Hi, a cost function is not available as far as i know. For more than two classes you could use the function fitcecoc ...

cost function in classification learner app

Hi, a cost function is not available as far as i know. For more than two classes you could use the function fitcecoc ...

13 days ago | 0

| accepted

Answered

Problems with financial timetable

Hi, the numbers in your table are not numbers for matlab. '9350.00' is not the same like 9350.00 - the first...

Problems with financial timetable

Hi, the numbers in your table are not numbers for matlab. '9350.00' is not the same like 9350.00 - the first...

13 days ago | 1

| accepted

Answered

How to use loss() function in SVM trained model

Hi here you find an example with step by step how to for your problem: <https://de.mathworks.com/help/stats/compactclassif...

How to use loss() function in SVM trained model

Hi here you find an example with step by step how to for your problem: <https://de.mathworks.com/help/stats/compactclassif...

16 days ago | 0

Answered

How to Open Script from Directory in Matlab

Hi, when working in Matlab try this: run('C:\Your Directory\subfolder\scriptname.m') or run('\\11.222.333.44\S...

How to Open Script from Directory in Matlab

Hi, when working in Matlab try this: run('C:\Your Directory\subfolder\scriptname.m') or run('\\11.222.333.44\S...

16 days ago | 0

Answered

How to solve this simple system of 2 equation in MATLAB

Hi, you could do so: % declare syms syms D L t; % Coefficient Matrix A = [cos(t) sin(t); sin(t) cos(t)]; ...

How to solve this simple system of 2 equation in MATLAB

Hi, you could do so: % declare syms syms D L t; % Coefficient Matrix A = [cos(t) sin(t); sin(t) cos(t)]; ...

17 days ago | 0

Answered

Problem with fit function

Hi Angela, try this: x1=[178 1316 3236 5155 7075 8996 10916 12836 14756 16676 18568]' y1=[1.0000 1.1848 1.4038 1....

Problem with fit function

Hi Angela, try this: x1=[178 1316 3236 5155 7075 8996 10916 12836 14756 16676 18568]' y1=[1.0000 1.1848 1.4038 1....

18 days ago | 1

| accepted

Answered

How to replace a "for loop" with vectorization?

Hi, You can find a good start to this topic in the link below. <https://de.mathworks.com/help/matlab/matlab_prog/vectoriza...

How to replace a "for loop" with vectorization?

Hi, You can find a good start to this topic in the link below. <https://de.mathworks.com/help/matlab/matlab_prog/vectoriza...

18 days ago | 0

Question

Improving the performance of vectorized code possible?

Hello, I rewrote a calculation script with nested loops in vectorized code, which greatly improved computation time. Now I ha...

18 days ago | 1 answer | 0

Answered

How to replace a "for loop" with vectorization?

Hi, I finished ;-) You could change the code as follows: 1.) To replace the nested loop this is needed: [b, a] = ...

How to replace a "for loop" with vectorization?

Hi, I finished ;-) You could change the code as follows: 1.) To replace the nested loop this is needed: [b, a] = ...

18 days ago | 1

| accepted

Answered

How do I use Matlab to create multiple arrays from a single column in .xls based on a varying setpoint?

Hi, you should write the data into a cell array. This type is capable of having different lengths unlike an array. In the fol...

How do I use Matlab to create multiple arrays from a single column in .xls based on a varying setpoint?

Hi, you should write the data into a cell array. This type is capable of having different lengths unlike an array. In the fol...

20 days ago | 0

Answered

matlab symbolic equations into symbolic matrices and numerically solving

Hi, attached you find a .pdf-file exported from a live script where you find the first steps you need to understand how to do...

matlab symbolic equations into symbolic matrices and numerically solving

Hi, attached you find a .pdf-file exported from a live script where you find the first steps you need to understand how to do...

20 days ago | 0

Answered

How to create a random walk in 1d array

Hi, try this: function ver = random_walk(number_of_tries, center) %% function gives a random walk in 1D % %...

How to create a random walk in 1d array

Hi, try this: function ver = random_walk(number_of_tries, center) %% function gives a random walk in 1D % %...

20 days ago | 0

Answered

Time series graph with best fit line

Great, always when i try to help people here i learn a lot ;-) The files are attached. After converting to the correct dat...

Time series graph with best fit line

Great, always when i try to help people here i learn a lot ;-) The files are attached. After converting to the correct dat...

20 days ago | 0

| accepted