999 total contributions since 2017

Knowledge means knowing where it is written...

Interested in:

- Optimization

- Mathematical Modelling

- Improvement of my programming skills

Answered

what is the problem in this function ?

Use: result = fmin4(a,b,c) instead of pressing the RUN button

what is the problem in this function ?

Use: result = fmin4(a,b,c) instead of pressing the RUN button

22 minutes ago | 0

| accepted

Answered

problem in dealing Cell and array

% produce some data to play with r = 3; q = 4; k(1:5) = {rand(r,q)}; % size of k = 1 x 5 % This should do what you expect:...

problem in dealing Cell and array

% produce some data to play with r = 3; q = 4; k(1:5) = {rand(r,q)}; % size of k = 1 x 5 % This should do what you expect:...

31 minutes ago | 0

Answered

I need help with this false position script

No idea what your problem is, code runs for me: format long fx=@(x)-12-(21*x)+(18*x^2)-(2.75*x^3) a =sprintf('%.8f', fp(f...

I need help with this false position script

No idea what your problem is, code runs for me: format long fx=@(x)-12-(21*x)+(18*x^2)-(2.75*x^3) a =sprintf('%.8f', fp(f...

15 hours ago | 0

Answered

Run a script multiple times and save outputs

Write a function or a second script which calls your script in a for loop and save the results in a new line of a result matrix ...

Run a script multiple times and save outputs

Write a function or a second script which calls your script in a for loop and save the results in a new line of a result matrix ...

16 hours ago | 0

| accepted

Answered

How can i reduce the powers of all plotted functions to 0

one approach using string arrays: number = exp(100) a = split(string(sprintf('%e',number)),"e+"); b = double("1e+" + stri...

How can i reduce the powers of all plotted functions to 0

one approach using string arrays: number = exp(100) a = split(string(sprintf('%e',number)),"e+"); b = double("1e+" + stri...

16 hours ago | 0

Answered

energy harvesting with game theory

The was you ask it: No. In general there are no tailored codes for very specific things like you want. You can browse <htt...

energy harvesting with game theory

The was you ask it: No. In general there are no tailored codes for very specific things like you want. You can browse <htt...

17 hours ago | 0

Answered

Creating a sinusoidal graph

Note the frequency of your signals. Are 100 values really enough to display this frequency correctly? Hint: Think about somethi...

Creating a sinusoidal graph

Note the frequency of your signals. Are 100 values really enough to display this frequency correctly? Hint: Think about somethi...

17 hours ago | 0

Answered

Create a table in MatLab with specific data in different spreadsheets in one Excel File.

Use the <https://de.mathworks.com/help/matlab/ref/readtable.html?s_tid=doc_ta#d117e1215216 *|sheet|*> option from the *|readtabl...

Create a table in MatLab with specific data in different spreadsheets in one Excel File.

Use the <https://de.mathworks.com/help/matlab/ref/readtable.html?s_tid=doc_ta#d117e1215216 *|sheet|*> option from the *|readtabl...

20 hours ago | 0

Answered

R2018a contained wlan example code, but none of it is in R2019b. What happened to all the wlan example code?

There is a bunch of examples here: <https://de.mathworks.com/help/wlan/examples.html>

R2018a contained wlan example code, but none of it is in R2019b. What happened to all the wlan example code?

There is a bunch of examples here: <https://de.mathworks.com/help/wlan/examples.html>

2 days ago | 0

Answered

I don't know why ODE45 function does not count time. Runs forever.

Your code repeats calculations on constants that should be done only once for performance - but more important ist that your ode...

I don't know why ODE45 function does not count time. Runs forever.

Your code repeats calculations on constants that should be done only once for performance - but more important ist that your ode...

4 days ago | 3

Answered

How to find the arc length of a trajectory?

Maybe it helps if you know the center coordinates and the radius of your circle -after that you can calculate the angles and use...

How to find the arc length of a trajectory?

Maybe it helps if you know the center coordinates and the radius of your circle -after that you can calculate the angles and use...

4 days ago | 0

Answered

Conversion of 2000x3 decimal matrix .txt file into binary 2000x3 .txt file

This should work: A = readmatrix('test_input_xyz.txt'); [sz1, sz2] = size(A); A = reshape(A,[],1); B = sdec2bin(A,12); B = ...

Conversion of 2000x3 decimal matrix .txt file into binary 2000x3 .txt file

This should work: A = readmatrix('test_input_xyz.txt'); [sz1, sz2] = size(A); A = reshape(A,[],1); B = sdec2bin(A,12); B = ...

7 days ago | 1

| accepted

Answered

Error in simulation using ODE15s (probably with vertcat)

function template %set the parameters p = set_parameters; %set the initial conditions input.Conc= [100 0 0];%target viru...

Error in simulation using ODE15s (probably with vertcat)

function template %set the parameters p = set_parameters; %set the initial conditions input.Conc= [100 0 0];%target viru...

7 days ago | 0

Answered

Linear regression - extracting info using matrix algebra

add a column of ones to your matrix DATA in pos. 4. isolate income as a column vector and remove this column from DATA then use:...

Linear regression - extracting info using matrix algebra

add a column of ones to your matrix DATA in pos. 4. isolate income as a column vector and remove this column from DATA then use:...

8 days ago | 0

| accepted

Answered

how can write PSO constraints

Use the lower and upper bounds input argument, like shown in the documentation: <https://de.mathworks.com/help/gads/particles...

how can write PSO constraints

Use the lower and upper bounds input argument, like shown in the documentation: <https://de.mathworks.com/help/gads/particles...

8 days ago | 0

| accepted

Answered

Error in ODE 45: MYODE must return a column vector.

To solve this error make sure that dy is column vector. dy = [du; dv] could already solve the problem - but only if th...

Error in ODE 45: MYODE must return a column vector.

To solve this error make sure that dy is column vector. dy = [du; dv] could already solve the problem - but only if th...

9 days ago | 0

| accepted

Answered

Solving a system of equations without "syms"

doc linsolve or https://de.mathworks.com/help/matlab/ref/linsolve.html

Solving a system of equations without "syms"

doc linsolve or https://de.mathworks.com/help/matlab/ref/linsolve.html

9 days ago | 0

Answered

How to covert unit of Voltage(V) to acceleration(m/s^2) and in speed (m/s)

https://wikimedia.org/api/rest_v1/media/math/render/svg/438ac92993d4032c8660665fcb017cbe76c4a113 The last term on the right sid...

How to covert unit of Voltage(V) to acceleration(m/s^2) and in speed (m/s)

https://wikimedia.org/api/rest_v1/media/math/render/svg/438ac92993d4032c8660665fcb017cbe76c4a113 The last term on the right sid...

9 days ago | 0

| accepted

Answered

How to make the vessels brighter in this segmented image

I = imread('untitled.jpg'); I1 = imadjust(I,[0 0.1]); imshow(I1) results in:

How to make the vessels brighter in this segmented image

I = imread('untitled.jpg'); I1 = imadjust(I,[0 0.1]); imshow(I1) results in:

9 days ago | 0

| accepted

Answered

How this is possible? "atan(x) function problem"

What is the problem? https://en.wikipedia.org/wiki/Inverse_trigonometric_functions#arctan a = 1/0 a = Inf atan(a) ...

How this is possible? "atan(x) function problem"

What is the problem? https://en.wikipedia.org/wiki/Inverse_trigonometric_functions#arctan a = 1/0 a = Inf atan(a) ...

9 days ago | 1

Answered

converting Matlab plot example

trop =[0.2571;-0.9444;-1.3218;0.9248;0.0000;-0.0549;0.9111;0.5946;0.3502;1.2503;0.9298;0.2398;-0.6904;-0.6516;1.1921;-1.6118;-0....

converting Matlab plot example

trop =[0.2571;-0.9444;-1.3218;0.9248;0.0000;-0.0549;0.9111;0.5946;0.3502;1.2503;0.9298;0.2398;-0.6904;-0.6516;1.1921;-1.6118;-0....

10 days ago | 0

| accepted

Answered

how to measure angle and flame speed from Picture ..

Usually i would not open a new answer - but this question is weird, because i can not comment it for some technical reason. Howe...

how to measure angle and flame speed from Picture ..

Usually i would not open a new answer - but this question is weird, because i can not comment it for some technical reason. Howe...

10 days ago | 0

Answered

How to solve pendulum ode function?

https://de.mathworks.com/matlabcentral/answers/437764-ode45-i-get-wrong-results#answer_354579

How to solve pendulum ode function?

https://de.mathworks.com/matlabcentral/answers/437764-ode45-i-get-wrong-results#answer_354579

10 days ago | 1

| accepted

Answered

Why is my fimplicit plot empty?

The warning means, that Matlab did not find an analytical solution - solve numeric: syms x(t) Dxt(t) ode = diff(x,t,2) + ((4.2...

Why is my fimplicit plot empty?

The warning means, that Matlab did not find an analytical solution - solve numeric: syms x(t) Dxt(t) ode = diff(x,t,2) + ((4.2...

10 days ago | 1

| accepted

Answered

DOUBLE cannot convert the input expression into a double array?

clc; clear; anglout = rad2deg(pi); true_value = cos(pi/3); h = pi/3-pi/4; n = 6; syms f(x) op(x) f(x) = cos(x); sol = z...

DOUBLE cannot convert the input expression into a double array?

clc; clear; anglout = rad2deg(pi); true_value = cos(pi/3); h = pi/3-pi/4; n = 6; syms f(x) op(x) f(x) = cos(x); sol = z...

10 days ago | 0

Answered

Matrix indexing in a function

It is a good idea to work with polyshape objects in this case: % Find intersected circles P = [0 0 1; 1 1.5 0.75; 2 1 0.5]; f...

Matrix indexing in a function

It is a good idea to work with polyshape objects in this case: % Find intersected circles P = [0 0 1; 1 1.5 0.75; 2 1 0.5]; f...

10 days ago | 0

Question

Can not comment / edit one single question in Answers

I tried to comment on the following question, to come up with an improved version of the code: https://de.mathworks.com/matlabc...

10 days ago | 0 answers | 0

Answered

Read time and numerical data from txt file and plot in matlab.

If you use R2019a or later, maybe this is interesting for you: https://de.mathworks.com/help/matlab/ref/readvars.html also, ...

Read time and numerical data from txt file and plot in matlab.

If you use R2019a or later, maybe this is interesting for you: https://de.mathworks.com/help/matlab/ref/readvars.html also, ...

10 days ago | 0