850 total contributions since 2017

Knowledge means knowing where it is written...

Interested in:

- Optimization

- Mathematical Modelling

- Improvement of my programming skills

Answered

Fval Output by ga does not match output of fitness function evaluated at the respective x vector

you problably are are victim of rounding errors. try: FullDevice(x) to use the exact results of x as input for your Fitn...

Fval Output by ga does not match output of fitness function evaluated at the respective x vector

you problably are are victim of rounding errors. try: FullDevice(x) to use the exact results of x as input for your Fitn...

2 dagen ago | 0

| accepted

Answered

Plotting the different solution via fzero solver against a range of one of the variable

N = 100; % define the parameters Nd = 1e23; e = 12*1e-12; %r = 0 R = 20*1e-9; Et_Ef = -0.21*1.6*1e-19; K = 1.3807e-...

Plotting the different solution via fzero solver against a range of one of the variable

N = 100; % define the parameters Nd = 1e23; e = 12*1e-12; %r = 0 R = 20*1e-9; Et_Ef = -0.21*1.6*1e-19; K = 1.3807e-...

9 dagen ago | 0

| accepted

Answered

Optimizing a matrix with cplexlp?

Hi, you could think about using graphs for this job: % your matrix A = [0 1 0 0 0 0 0 0 0 0; 1 0 1 0 0 0 0 0 0 0; 0...

Optimizing a matrix with cplexlp?

Hi, you could think about using graphs for this job: % your matrix A = [0 1 0 0 0 0 0 0 0 0; 1 0 1 0 0 0 0 0 0 0; 0...

10 dagen ago | 1

| accepted

Answered

lsqcurvefit cannot evaluate initial function, says insufficient input arguments

Have a read here: https://de.mathworks.com/matlabcentral/answers/465406-fmincon-error-not-enough-input-arguments it appears to...

lsqcurvefit cannot evaluate initial function, says insufficient input arguments

Have a read here: https://de.mathworks.com/matlabcentral/answers/465406-fmincon-error-not-enough-input-arguments it appears to...

11 dagen ago | 1

| accepted

Answered

Fmincon error not enough input arguments

Your objective function takes 2 input arguments - by default the optimization solvers only use 1 argument, which is the vector o...

Fmincon error not enough input arguments

Your objective function takes 2 input arguments - by default the optimization solvers only use 1 argument, which is the vector o...

12 dagen ago | 3

Answered

Why doesn't this code rotate and transform the spiral?

No for loop is needed: t = linspace( 0,4*pi,1000); r=@(t) sqrt(t); x = r(t).*cos(t); y = r(t).*sin(t); plot(x,y) %turns x...

Why doesn't this code rotate and transform the spiral?

No for loop is needed: t = linspace( 0,4*pi,1000); r=@(t) sqrt(t); x = r(t).*cos(t); y = r(t).*sin(t); plot(x,y) %turns x...

12 dagen ago | 0

Answered

Solving two differential equations using ode45

This will help: https://de.mathworks.com/help/symbolic/odetovectorfield.html Follow the given examples and adapt them to your ...

Solving two differential equations using ode45

This will help: https://de.mathworks.com/help/symbolic/odetovectorfield.html Follow the given examples and adapt them to your ...

12 dagen ago | 1

| accepted

Answered

can anyone help me ?

clear all; clc; close all; N=[100,200,300,400]; hold on for k=1:numel(N) %%les données mathématiques t = 0:1/(N(k)...

can anyone help me ?

clear all; clc; close all; N=[100,200,300,400]; hold on for k=1:numel(N) %%les données mathématiques t = 0:1/(N(k)...

13 dagen ago | 0

Answered

Need to solve this

I assume you want real Solutions. Then try: syms a b c assume ([a b c], 'real') eq = [a+b == 204;... a+b*exp(-105*c) ==...

Need to solve this

I assume you want real Solutions. Then try: syms a b c assume ([a b c], 'real') eq = [a+b == 204;... a+b*exp(-105*c) ==...

15 dagen ago | 1

Answered

How can I delete the elements of array on MATLAB?

To delete an array use: array1 = [];

How can I delete the elements of array on MATLAB?

To delete an array use: array1 = [];

16 dagen ago | 1

| accepted

Answered

ode23 and ode45 problem

% Solve symbolic (blue line in plot) syms y(x) x eqn = diff(y,x) == -2*x+4*y^2 sol_symbolic = dsolve(eqn,y(0)==0); fplot(sol...

ode23 and ode45 problem

% Solve symbolic (blue line in plot) syms y(x) x eqn = diff(y,x) == -2*x+4*y^2 sol_symbolic = dsolve(eqn,y(0)==0); fplot(sol...

20 dagen ago | 0

| accepted

Answered

substitute one cell of 3D matrix with another cell

A(:,:,158) = I; % where I is the 512x512 image you want to insert

substitute one cell of 3D matrix with another cell

A(:,:,158) = I; % where I is the 512x512 image you want to insert

20 dagen ago | 0

| accepted

Answered

error variable y in fitness function

function y=fungsi3(x) y=2+exp(-(x(1).^2+x(2).^2)).*(sin(4*x(1))+cos(8*x(2))); end

error variable y in fitness function

function y=fungsi3(x) y=2+exp(-(x(1).^2+x(2).^2)).*(sin(4*x(1))+cos(8*x(2))); end

ongeveer een maand ago | 0

Answered

How can I expand x axis to have normal plot?

A(:,1)=data{:,1}; A(:,2)=data{:,2}; A=sortrows(A,1); plot(A(:,1),A(:,2))

How can I expand x axis to have normal plot?

A(:,1)=data{:,1}; A(:,2)=data{:,2}; A=sortrows(A,1); plot(A(:,1),A(:,2))

ongeveer een maand ago | 0

| accepted

Answered

Check to find if a row has an element occuring more than once

A = [0 0 1 1 0 0; 0 0 0 0 0 1; 1 1 0 0 0 1] res = (sum(A==1,2)>1) This works row-wise for more than 1 rows

Check to find if a row has an element occuring more than once

A = [0 0 1 1 0 0; 0 0 0 0 0 1; 1 1 0 0 0 1] res = (sum(A==1,2)>1) This works row-wise for more than 1 rows

ongeveer een maand ago | 0

| accepted

Answered

how can I create a multiplication table and write it to spreadsheet in Matlab?

a = 1:5; t = a .* a' writematrix(t,'multiplication.xlsx')

how can I create a multiplication table and write it to spreadsheet in Matlab?

a = 1:5; t = a .* a' writematrix(t,'multiplication.xlsx')

ongeveer een maand ago | 0

Answered

How do you give data as argument of fmincon?

<https://de.mathworks.com/help/optim/ug/passing-extra-parameters.html>

How do you give data as argument of fmincon?

<https://de.mathworks.com/help/optim/ug/passing-extra-parameters.html>

ongeveer een maand ago | 1

Answered

ode45 with two 2nd order differential equation

<https://de.mathworks.com/help/symbolic/odetovectorfield.html>

ode45 with two 2nd order differential equation

<https://de.mathworks.com/help/symbolic/odetovectorfield.html>

ongeveer een maand ago | 1

Answered

Solve a system of odes where equations are derived from a separate code (not directly given) using syms function

Hi, have a read here: <https://de.mathworks.com/help/symbolic/odetovectorfield.html> Best regards Stephan

Solve a system of odes where equations are derived from a separate code (not directly given) using syms function

Hi, have a read here: <https://de.mathworks.com/help/symbolic/odetovectorfield.html> Best regards Stephan

ongeveer een maand ago | 0

| accepted

Answered

Cannot use fzero function

i recommend to use fminunc: x=fminunc(@funct,pi/2); function y = funct(x) y=7.*sin(2.*pi.*x).^2 end

Cannot use fzero function

i recommend to use fminunc: x=fminunc(@funct,pi/2); function y = funct(x) y=7.*sin(2.*pi.*x).^2 end

ongeveer een maand ago | 1

Answered

Solving system of 3 nonlinear Equations

syms EPS0 E1 A1 E2 A2 RO e_y1 e_y2 e_z1 e_z2 I_y1z1 I_y2z2 M I_z1 I_z2 alfa fun1 = EPS0*(E1*A1 + E2*A2) - (1/RO)*(E1*A1*e_y1...

Solving system of 3 nonlinear Equations

syms EPS0 E1 A1 E2 A2 RO e_y1 e_y2 e_z1 e_z2 I_y1z1 I_y2z2 M I_z1 I_z2 alfa fun1 = EPS0*(E1*A1 + E2*A2) - (1/RO)*(E1*A1*e_y1...

ongeveer een maand ago | 0

| accepted

Answered

Creating transfer function (using tf) with unknowns in it

You might want to work with tuneable models / tuneable parameters.

Creating transfer function (using tf) with unknowns in it

You might want to work with tuneable models / tuneable parameters.

ongeveer een maand ago | 0

Answered

Find the intersection point between 2 curves

create a function handle depending from wave length, that subtracts both from each other. this is the objective function for usi...

Find the intersection point between 2 curves

create a function handle depending from wave length, that subtracts both from each other. this is the objective function for usi...

ongeveer een maand ago | 1

Answered

fmincon with function file

change your function, that it accepts x and p as input. use: x = x(1); y = x(2); for passing p to the function read her...

fmincon with function file

change your function, that it accepts x and p as input. use: x = x(1); y = x(2); for passing p to the function read her...

ongeveer een maand ago | 0

Answered

why my deeplearning toolbox can not work

you have to install the pretrained Networks seperatly. Use the Add on Manager.

why my deeplearning toolbox can not work

you have to install the pretrained Networks seperatly. Use the Add on Manager.

ongeveer een maand ago | 0

| accepted

Answered

Sine function produces unexpected results

Hi, note: >> t = 0:0.1:1 t = Columns 1 through 8 0 0.1000 0.2000 0.3000 0.4000 0.5000 0....

Sine function produces unexpected results

Hi, note: >> t = 0:0.1:1 t = Columns 1 through 8 0 0.1000 0.2000 0.3000 0.4000 0.5000 0....

ongeveer een maand ago | 1

| accepted

Answered

how to get float answer and not a Fraction ?

Hi, symbolic calculatuions are always precise. If you want a float point answer, you have to tell it to matlab: % one way: so...

how to get float answer and not a Fraction ?

Hi, symbolic calculatuions are always precise. If you want a float point answer, you have to tell it to matlab: % one way: so...

ongeveer een maand ago | 0

Answered

Define functional bounds in FMINCON optimization

Define them as nonlinear constraint function: <https://de.mathworks.com/help/optim/ug/fmincon.html?s_tid=doc_ta#busog7r-nonlc...

Define functional bounds in FMINCON optimization

Define them as nonlinear constraint function: <https://de.mathworks.com/help/optim/ug/fmincon.html?s_tid=doc_ta#busog7r-nonlc...

ongeveer een maand ago | 0

| accepted

Answered

How could normalize a matrix between 0 and 1.

result = normalize(x,2,'range')

How could normalize a matrix between 0 and 1.

result = normalize(x,2,'range')

ongeveer een maand ago | 1