# Mohammed Hamaidi

Programmer

**Spoken Languages:**

Arabic, English, French

**Statistics**

RANK**1.935**

of 257.892

REPUTATION**22**

CONTRIBUTIONS

**1** Question

**13** Answers

ANSWER ACCEPTANCE **
100.0%
**

VOTES RECEIVED**3**

RANK

of 17.768

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Solved

I Plead the Fifth

Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

circa un mese ago

How to define second derivative in symbolic

dr/dA = -sin(A)*(dA/d) d²r/dA² = -cos(A)*(dA/d)^2-sin(A)*d²A/d²

circa un mese ago | 0

Floor/Fix rounds the result of a division (60.000) to 59

Hi Just use: s=round(a/b)

circa un mese ago | 0

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.

Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

circa un mese ago

Solved

Energy of a photon

*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛* Given the frequency F of a photon in giga hertz. Find energy E of this...

circa un mese ago

Solved

Find out total non zero element of matrix

Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

circa un mese ago

Solved

Find the diagonal of the square of side L

You are given a square of side length L, find D the length of its diagonal.

circa un mese ago

Solved

Polynomial evaluation

Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

circa un mese ago

Solved

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

circa 2 mesi ago

Solved

Angle between Two Vectors

The dot product relationship, a dot b = | a | | b | cos(theta), can be used to determine the acute angle between vector a and ve...

circa 2 mesi ago

Solved

Volume of a Parallelepiped

Calculate the volume of a Parallelepiped given the vectors for three edges that meet at one vertex. A cube is a special case ...

circa 2 mesi ago

Solved

Are all the three given point in the same line?

In this problem the input is the coordinate of the three points in a XY plane? P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) how can...

circa 2 mesi ago

Solved

Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed

Find the remaining side of a triangle given the hypotenuse and a side. However, the normal functions and symbols are not allowe...

circa 2 mesi ago

Solved

Multiply 2 numbers

Very easy, you just have to multiply 2 numbers but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...

circa 2 mesi ago

Solved

Television Screen Dimensions

Given a width to height ratio of a TV screen given as _w_ and _h_ as well as the diagonal length of the television _l_, return t...

circa 2 mesi ago

Solved

Convert yards to feet

The goal of this script is to convert a value given in yards to feet.

circa 2 mesi ago

Solved

Back to basics 15 - classes

Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

circa 2 mesi ago

Solved

03 - Matrix Variables 4

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3d.png>> A 3x4 NaN (Not a Number) matrix (Hint: use ...

circa 2 mesi ago

Solved

Return the sequence element II

Given positive integers x and n, return a positive integer, y, which is the nth term in the <https://en.wikipedia.org/wiki/Juggl...

circa 2 mesi ago

Solved

Back to basics - mean of corner elements of a matrix

Calculate the mean of corner elements of a matrix. e.g. a=[1 2 3; 4 5 6; 7 8 9;] Mean = (1+3+7+9)/4 = 5

circa 2 mesi ago

Solved

Count photos

Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

circa 2 mesi ago

Solved

Back to basics 19 - character types

Covering some basic topics I haven't seen elsewhere on Cody. Return the number of punctuation characters in the input variabl...

circa 2 mesi ago

Solved

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

circa 2 mesi ago

Solved

Find the solution of algebraic equation

Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0; ...

circa 2 mesi ago

Solved

Create array of all Distances between two Sets of Points : No Neural Network Toolbox

This Challenge is a subsection of <http://www.mathworks.com/matlabcentral/cody/problems/1110-usc-fall-2012-acm-martian-pranks Ma...

circa 2 mesi ago

Solved

Create array of all Distances between two Sets of Points

This Challenge is a subsection of Martian Pranks based on Tim's efficient Distance calculation between sets of points. Given Po...

circa 2 mesi ago

Solved

Hydrogens in a Saturated Hydrocarbon

Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?

circa 2 mesi ago

Sparse matrix calculate warning: Matrix is close to singular or badly scaled.

You don't have to correct any thing. The matrix is close to singular (the determinant close to zero) Matlab indicate that Re...

circa 2 mesi ago | 0

How I use quiver to plot 3+2i

Just use: quiver(3,2,1) for any complex number c, use: quiver(real(c),imag(c),1)

circa 2 mesi ago | 1

| accepted