Community Profile

photo

Zakaria Makhlouki


125 2016 이후 총 참여 횟수

Zakaria Makhlouki's 배지

  • Leader
  • Speed Demon
  • Creator
  • Solver

세부 정보 보기...

참여 게시물
보기 기준

해결됨


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

2달 전

해결됨


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

2달 전

해결됨


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

약 2년 전

해결됨


Linear system of equations
Solve the system of equations in three variables.

약 2년 전

해결됨


Solve t^(a*x^2+b*x+c)=s
Solve t^(a*x^2+b*x+c)=s. Return x vector as result. Example a=1, b=2, c=1, t=3, s=15. Result x(1)= 0.5700 x(2)=-2.5700 H...

약 2년 전

해결됨


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

약 2년 전

해결됨


Sum the Digits of a Number
Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

약 2년 전

해결됨


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

약 2년 전

해결됨


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

약 2년 전

해결됨


convert between ascii and characters
I have seen multiple problems like this but none of them have a robust test suite associated with them. The first input C is ...

약 2년 전

해결됨


Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

약 2년 전

해결됨


Negative matrix
Change the sign of all elements in given matrix.

약 2년 전

해결됨


Min of a Matrix
Return the minimum value in the given matrix.

약 2년 전

해결됨


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

약 2년 전

해결됨


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

약 2년 전

해결됨


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

약 2년 전

해결됨


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

약 2년 전

해결됨


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

약 2년 전

해결됨


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

약 2년 전

해결됨


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

약 2년 전

해결됨


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

약 2년 전

해결됨


Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

약 2년 전

해결됨


sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

약 2년 전

해결됨


Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

약 2년 전

문제


sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

약 2년 전 | 0

해결됨


Omit columns averages from a matrix
Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

약 2년 전

해결됨


Change the sign of even index entries of the reversed vector
change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...

약 2년 전

해결됨


Create a vector whose elements depend on the previous element
The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...

약 2년 전

해결됨


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

약 2년 전

해결됨


Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

약 2년 전

Load more