A résolu


Find Logic 29

environ 3 ans il y a

A résolu


Find Logic 31

environ 3 ans il y a

A résolu


Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...

environ 3 ans il y a

A résolu


Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If p is the perimeter of a right angle triangle with integral length sides, { a, b, c }, there are exactly three solutions for p...

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

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


What is the distance from point P(x,y) to the line Ax + By + C = 0?
Given a point, P(x,y), find the distance from this point to a linear line. INPUTS: x, y, A, B, C OUTPUTS: d, the distance ...

environ 3 ans il y a

A résolu


Angle between two vectors
You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

environ 3 ans il y a

A résolu


Find Logic 28

environ 3 ans il y a

A résolu


Find Logic 21

environ 3 ans il y a

A résolu


Find Logic 20

environ 3 ans il y a

A résolu


Find Logic 26

environ 3 ans il y a

A résolu


Find Logic 27

environ 3 ans il y a

A résolu


Find Logic 25

environ 3 ans il y a

A résolu


Find Logic 24

environ 3 ans il y a

A résolu


Find Logic 23

environ 3 ans il y a

A résolu


Find Logic 22

environ 3 ans il y a

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


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


Draw a '0' in a one matrix!

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


to the 2 all elements
to the 2 all 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


Find Logic 13

environ 3 ans il y a

Charger plus