GEORGIOS BEKAS
Followers: 0 Following: 0
Engineering Optimization specialist
Feeds
提问
Genetic algorithm objective function
I want to create an objective function that will be the sum of a series of 100 variables that will have a range of values betwee...
2 years 前 | 1 个回答 | 0
1
个回答提问
Turning a sequence of operations into a function
I have a sequence of operations that attempts to calculate, whether there is an increase or a decrease in the next step, in comp...
3 years 前 | 1 个回答 | 0
1
个回答提问
Undefined function or method 'mrdivide'
I wrote the following code which is automatically generated by the ntstool of MATLAB for the training of a NARX neural network. ...
4 years 前 | 0 个回答 | 0
0
个回答提问
Indexing problem. I want to insert a vector into another vector with a loop.
I have a matrix A, whose initial form is as follows: A = [5 4 3] By using the following expression: A = [A,zeros(1, 12)]; ...
4 years 前 | 1 个回答 | 0
1
个回答提问
Interpolation problem. How can I generalize for a bigger number of intervals?
Imagine that I want to express in a way that I will describe below, a number that falls into a possible range of values. E.g. t...
4 years 前 | 0 个回答 | 0
0
个回答提问
Interpolation code. How can I deal with a strange problem.
Imagine that I want to express in a way that I will describe below, a number that falls into a possible range of values. E.g. t...
4 years 前 | 1 个回答 | 0
1
个回答提问
Creating two row matrices out of any initial matrix that would contain each element inside the initial matrix and the one in the previous column.
I am trying to create two row matices out of an initial matrix. The two row matrices need to contain each element inside the ini...
5 years 前 | 0 个回答 | 0
0
个回答提问
Problem with my code?
I wrote the following code that is based on reading two csv files that I include. clc clear a = dlmread ('gb.csv') b = d...
5 years 前 | 2 个回答 | 0
2
个回答提问
Reshaping an 1x365 matrix with daily observations within a year
I have a matrix with observations and its size is 1x365. It has to do with daily observations starting from the day Sunday, whic...
5 years 前 | 1 个回答 | 0
1
个回答提问
Can you find the error in this code that aims to sum the digits of a string?
I wrote this code in order to sum the digits of any string, and to also create a loop that stops the summing process when the le...
6 years 前 | 2 个回答 | 0
2
个回答提问
Reading a dat file; there is a bug
I have written the following code in order for MATLAB to read a dat file that I attach. There is a bug in line 20, despite the ...
6 years 前 | 1 个回答 | 0
1
个回答提问
Logic behind triple loops
Hi I am new in triple loops and trying to find a way to automate the generation of these numbers: 11000 11001 21001 ...
6 years 前 | 0 个回答 | 0
0
个回答提问
BAYESIAN OPTIMIZATION OF A NEURAL NETWORK
I wrote the following code to optimize the architecture of a neural network via Bayesian optimization. What's wrong with it? ...
6 years 前 | 0 个回答 | 0
0
个回答提问
Error in creating a function
What's wrong in the following expression? ObjectiveFunction = @x() sim(net, x')
6 years 前 | 1 个回答 | 0
1
个回答提问
USING A NEURAL NETWORK AS AN OBJECTIVE FUNCTION INSIDE A GENETIC ALGORITHM
I trained a neural network with the name 'net', after that I am using a genetic algorithm to do some optimization. After using ...
6 years 前 | 0 个回答 | 1
0
个回答5th root with Newton-Raphson code
If n is the number whose 5th root has to be calculated: function f = fifth_root(n) xold=10; for i = 1:100 ...
6 years 前 | 0
| 已接受
提问
5th root with Newton-Raphson code
This is a code I have created to calculate numerically the 5th root. Something is wrong. x = 0.05; x_old = 500; iter...
6 years 前 | 2 个回答 | 0
2
个回答提问
(Anti)diagonal automation
Counting from the top right element to the the bottom left element of an indicative 5x5 matrix, is there a quick way to automate...
7 years 前 | 1 个回答 | 0
1
个回答提问
How to remove non consecutive values from a vector?
I have the following vector that represents how many times consecutive values appear in a row by using the following code: ...
7 years 前 | 1 个回答 | 0
1
个回答提问
Correct use of regexp
If x is the following string, I want to add a zero to the end of each sequence of zeros. x='0110' y=regexp(x,'[0+]','[0+...
7 years 前 | 2 个回答 | 0
2
个回答提问
How can the code memorize the generated vector?
Is there a quick way to memorize the generated out matrix in each iteration? in1=[1 8 12] in2=[4 5 9] out=[] coun...
7 years 前 | 1 个回答 | 0
1
个回答提问
Shifting letters by two positions. What's wrong with the code?
I am trying to shift each letter of a given word by two positions. alphab='abcdefghijklmnopqrstwxyz' inStr = 'doug'; ...
7 years 前 | 2 个回答 | 0
2
个回答提问
What wrong with the indexing code?
If I want to fill in a matrix, of which I have its indices without a for loop, how could I do it? Suppose that the (row(i),col(...
7 years 前 | 2 个回答 | 0
2
个回答提问
Correct use of arrayfun
Suppose that I have a matrix a, and I want to do an operation on it, e.g. subtracting the mean of its columns from each element ...
7 years 前 | 1 个回答 | 0
1
个回答提问
Using regexp to identify matches
I am trying to identify matches using the command regexp. I am trying to isolate either the first subset of a string (e.g. 4002...
7 years 前 | 0 个回答 | 0
0
个回答提问
How to join the subelements of a cell?
I am trying to express all sentences in one cell with string subelements. s='I am George. John is there? Ana is around! Are ...
7 years 前 | 2 个回答 | 0
2
个回答提问
Sum of matrix elements after using regexp
I wrote the following code to sum all number after locating numeric values from a string by using regexp. s='2 groupd 40cel...
7 years 前 | 1 个回答 | 0
1
个回答提问
What is wrong with the code?
I am trying to find the logest subsequence of 1s in a string. I am doing something wrong. s='01010101110001011100010111000...
7 years 前 | 2 个回答 | 0
2
个回答提问
Proper use of regexprep
I want to remove the consonants of a string, using regexprep. How can I modify the initial string s1 with a string s2? s...
7 years 前 | 2 个回答 | 0
2
个回答提问
Locate entire word in cell given a specific pattern
I am trying to locate an entire word in a cell, given a specific pattern. I am giving the following example: stringList ...
7 years 前 | 1 个回答 | 0