Community Profile

photo

George Papazafeiropoulos


Last seen: ein Tag vor Aktiv seit 2012

Followers: 0   Following: 0

Kontakt

Major, Infrastructure Engineer, Hellenic Air Force Civil Engineer, M.Sc., Ph.D.

Statistiken

All
  • Knowledgeable Level 3
  • 3 Month Streak
  • Commenter
  • Promoter
  • Explorer
  • Personal Best Downloads Level 4
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Revival Level 1
  • Knowledgeable Level 2
  • First Answer

Abzeichen anzeigen

Feeds

Anzeigen nach

Gelöst


make an eye matrix which element is 1:n
for a given input n, make an n by n matrix which contains elements 1:n for example input =5 output = [1 0 0 0 0;0 2 0 0 0; 0...

mehr als 7 Jahre vor

Gelöst


basics -making a matrix
make a matrix which contains input x as the last element. the intervals should be +1 ex) input = 5 output= [0 1 2 3 4 5] ex)...

mehr als 7 Jahre vor

Gelöst


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

mehr als 7 Jahre vor

Gelöst


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

mehr als 7 Jahre vor

Gelöst


surrounded centroid
create a [n*n] matrix. n must be odd number. its centroid is n which is surrounded by n-1. example: surround(5)= 1 2 ...

mehr als 7 Jahre vor

Gelöst


create a square matrix
create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

mehr als 7 Jahre vor

Gelöst


Calculate the hypotenuse of a right triangle without using ^ and sqrt ()
Find out the hypotenuse of right triangle. Say a = 4, b = 3 then c = 5 Please don't use ^ and sqrt() function.

mehr als 7 Jahre vor

Gelöst


Solve sin(x) without sin(x)
Calculate y = sin(x) x = 0 -> y= 0 without the use of sin(x) or cos(x)

mehr als 7 Jahre vor

Gelöst


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

mehr als 7 Jahre vor

Gelöst


Column Removal
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 ...

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


N-plicate me
Modified version of duplicate and triplicate me. Repeat elements of input vector with given input n Ex: input = [1 2 3 4 5...

mehr als 7 Jahre vor

Gelöst


tridiagonal matrix
Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

mehr als 7 Jahre vor

Gelöst


Calculate inverse matrix in m by n matrix
x=(1:10)' y=roundn(2*x+7*rand(size(x)),-1) a*x=y Estimate a using inverse matrix calculation. This is principle of li...

mehr als 7 Jahre vor

Gelöst


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

mehr als 7 Jahre vor

Gelöst


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

mehr als 7 Jahre vor

Gelöst


Two dimensional moving average
A=[1 2 3 4 5 1 2 2 2 3 2 3 3 3 4 1 1 4 4 2] B=[1 1;1 1]; % This is can be used for weight factor of moving a...

mehr als 7 Jahre vor

Gelöst


Triplicate me
Given an input vector, output a 3n vector with all elements of input vector repeated thrice Example : in->[1 2 3 5] out...

mehr als 7 Jahre vor

Gelöst


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

mehr als 7 Jahre vor

Gelöst


Implement zero based indexing (Vectors only)
Given an input vector and position (which is zero based) output the value Example: x = [1 2 4 5] pos = 2 value = 4

mehr als 7 Jahre vor

Gelöst


Find the sum of all the numbers of the input vector
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 ...

mehr als 7 Jahre vor

Gelöst


Frequency Analysis of Text
Frequency analysis is a common task in cryptoanalysis. It is essentially counting the occurrences of alphabets (regardless of ca...

mehr als 7 Jahre vor

Gelöst


Magnitude of a vector
Given a vector x, what is its magnitude?

mehr als 7 Jahre vor

Gelöst


Reduce the logic
We have three logical input, x,y and z. The output is: y = ((x&y)|z)&((z|x&y)|(z&y|x))|((x&z)|z)&((y|x&z)|(z&x|y))|(x|y|z) ...

mehr als 7 Jahre vor

Gelöst


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

mehr als 7 Jahre vor

Gelöst


cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

mehr als 7 Jahre vor

Gelöst


Geometrical meaning of determinant
Given two vectors x,y, in 2D or three vectors x,y,z in 3D space, compute the area (or volume) of the parallelogram they define. ...

mehr als 7 Jahre vor

Gelöst


Convert a vector to a lower triangular matrix
I now have a row vector and I want to convert it to a lower trilangular matrix. The rows of the lower trilangular matrix have...

mehr als 7 Jahre vor

Gelöst


Rotate array 90 degrees
Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

mehr als 7 Jahre vor

Gelöst


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

mehr als 7 Jahre vor

Mehr laden