A résolu


Create an n-by-n null matrix and fill with ones certain positions
The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

plus de 2 ans il y a

A soumis


hho
The Harris Hawks Optimization code (matlab M-file) for optimizing benchmark functions.

presque 3 ans il y a | 11 téléchargements |

Thumbnail

A soumis


pso - Particle Swarm Optimization
Standard Particle Swarm Optimization code (Matlab M-file) for the optimization of the benchmark function.

presque 3 ans il y a | 19 téléchargements |

A résolu


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

environ 3 ans il y a

A résolu


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

environ 3 ans il y a

A résolu


Converts numbers into characters
Converts numbers into characters

environ 3 ans il y a

A résolu


Find the max element of the array
Find the max element of the array

environ 3 ans il y a

A résolu


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

environ 3 ans il y a

A résolu


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

environ 3 ans il y a

A résolu


to the 2 all elements
to the 2 all elements

environ 3 ans il y a

A résolu


the average value of the elements
Calculate the average value of the elements in the array

environ 3 ans il y a

A résolu


Double all elements in the array
Duplicate all elements in the array

environ 3 ans il y a

A résolu


calculate the length of matrix
input 1 array, calculate the length

environ 3 ans il y a

A résolu


Draw a '0' in a one matrix!

environ 3 ans il y a

A résolu


Draw a '4' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '6' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '9' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '7' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '8' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '3' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '2' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '5' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '1' in a zero matrix!

environ 3 ans il y a

A résolu


Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

plus de 3 ans il y a

A résolu


~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

plus de 3 ans il y a

A résolu


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

plus de 3 ans il y a

A résolu


Draw a 'N'!
Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

plus de 3 ans il y a

A résolu


Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

plus de 3 ans il y a

A résolu


Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

plus de 3 ans il y a

Charger plus