Community Profile

# Abdelfatah Teamah

1.460 total contributions since 2018

View all

Contributions in
View by

Solved

Find the square of the sum of the digits of a number
If a number (n) is provided as an input, find the square of the sum of the digits of the number. Example If n = 21, the an...

4 Tage ago

Solved

Volume of a sphere given its surface area
You just measured its surface area, that is the input.

4 Tage ago

Solved

Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

4 Tage ago

Solved

Delete 2nd and 5th column of Given 6*6 matrix
Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

4 Tage ago

Solved

Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

4 Tage ago

Solved

Convert hex color specification to MATLAB RGB
Here's something that comes up all the time if you deal with web pages. Given a <http://www.w3schools.com/html/html_colors.as...

4 Tage ago

Solved

Put Two 1D matrices into one 1D matrix
Example: If input a = [1 2 3 4 5]; input b = [10 9 8 7 6]; then output will be, y_correct = [1 10 2 9 3 8 4 7 5...

4 Tage ago

Solved

does it touch ?
given a sentence, tell how much it touches. input : string output : how much it touches touching : a bilabial phoneme d...

4 Tage ago

Solved

Conversion from hours to mili sec
Convert given input in hours to mili seconds

4 Tage ago

Solved

Fizz Buzz
Given an array of positive, non-zero, integers, return a cell array of strings the same size as the input, where each element in...

4 Tage ago

Solved

Given input in degrees, output to radians

4 Tage ago

Solved

UICBioE240 problem 1.14
Solve 3^x = 17

4 Tage ago

Solved

Matrix with different incremental runs
Given a vector of positive integers a (>=0); How does one create the matrix where the ith column contains the vector 1:a(i) poss...

4 Tage ago

Solved

Basics: Divide integers to get integer outputs in all cases
Divide integers a and b in such a way that output y is always an integer (in ceil manner)

4 Tage ago

Solved

UICBioE240 problem 1.5
Find the size of the matrix, then multiply both values by 10 and make it into a column vector. So if A = [ 1 2 3; ...

4 Tage ago

Solved

Remove the air bubbles from a vector
_*A reduced version of Problem 112*_ Given a column vector v, return a vector w in which all the zeros have "bubbled" to the ...

4 Tage ago

Solved

metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

4 Tage ago

Solved

create a circulant matrix
create a circulant matrix

4 Tage ago

Solved

Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

4 Tage ago

Solved

Signed Magnitude
For a given input vector, return the value that is furthest from zero. For example, if x = [1 2 -12] return -12.

4 Tage ago

Solved

Number of odd and even elements within matrix
Input(m) - any matrix with integers Output(n) - n(1)=number of odd elements, n(2)=number of even elements Example: * m=...

4 Tage ago

Solved

Given an input string with the scientific pitch notation for standard tuning ( <http://en.wikipedia.org/wiki/Guitar_tunings#Stan...

4 Tage ago

Solved

Angle of triangle
For three unknown points a b c, given three sides ab bc ca, find three angles abc bca cab in radians. Your function should b...

4 Tage ago

Solved

Matlab Basics II - Log and natural log
Write a function that calculates the difference between the log and natural log of a vector, to two decimal places example: ...

4 Tage ago

Solved

Count number of words in string
Count number of words in string Examples 'hi', answer is 1 'hi hi', answer is 2 'I enjoy cody', answer is 3

4 Tage ago

Solved

Write a function that when given an odd number, produces an arrow-head function pointing to the right. Examples n = 3 ...

4 Tage ago

Solved

Calculate the height of an object dropped from the sky
Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...

4 Tage ago

Solved

Simple date to serial no. conversion
Convert a date string to a serial date number. For example if you take x='19-May-2001' then the result is 730990 x...

4 Tage ago

Solved

Vector of numbers divisible by 3
* Input(n) - any integer * Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0 Examples: * n=6...

4 Tage ago

Solved

UICBioE240 2.10
Given a vector of numbers, give the difference between the maximum and minimum values.

4 Tage ago