Community Profile

Professional Interests: optimization, evolutionary algorithms, machine learning

Contact

Top 5% contributor

Given a lower and upper bound of an interval, distance between numbers, and one particular number from that interval, create an ...

Solve this!

1

3 years ago

Hi, I have run into problems when using class inheritance in combination with packages. I think it is the same issue as alrea...

2 Answers

0

Asked 3 years ago

A small utility encapsulating the call to 'ishold', 'hold on' and a restortion of the hold state.

2 downloads

5 years ago

4 downloads

I am not quite sure what exactly you mean. I tried your code with a similar test as I did for my code. 0> s = cSingleton (Canno...

4644 views

Responded 7 years ago

Jozef " <jozef.kohut@gmx.at> wrote in message Hi, Jozef. Since I did not find a way how to call private constructor from a sta...

Hi, all. Maybe a stupid question, but I did not find the answer in the documentation. How can I call a class constructor from ...

Posted 7 years ago

Hi, Petros. Thanks for your suggestion. From the description of OmegaChart, it seems to me, that it converts a source code to a...

2710 views

Responded 5 years ago

Hi Rune. Thanks for your reply. Yes, indeed, I am looking for something like a flowchart, but maybe, I did not express myself c...

Hi all. I do not know Simulink very much. Currently, I try to figure out if I can "draw" an algorithm in Simulink (and if Simul...

Posted 5 years ago

Jan, thanks for your reply. Yes, indeed, the function will be called millions of times. Do you see any other possibility of usin...

1332 views

Responded 4 years ago

Hi. I have the following setup: 1) a function of several variables implemented in MATLAB which I want to optimize, i.e. to find...

Posted 4 years ago

Hi. In certain cases I like the duality of calling functions in MATLAB, i.e. the command syntax and the function syntax. I have...

975 views

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

Given a and b, return the sum a+b in c.

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

Given the input n, return true if n is odd or false if n is even.

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

Hi, I just posted a question on MATLAB Answers about the problems I ran into when trying to move some class definitions inside ...

564 views

Posted 3 years ago

3 downloads