Community Profile

# Abdelfatah Teamah

1.397 total contributions since 2018

View all

Contributions in
View by

Solved

UICBioE240 problem 1.1
Remove the middle row from a matrix, assuming # of rows is odd. So if A = [ 1 2 3; 4 5 6; 7 8 9] the...

7 giorni ago

Solved

UICBioE240 problem 1.4
So if A = [ 1 2 3; 4 5 6; 7 8 9] B = [ 3 3]

7 giorni ago

Solved

UICBioE240 problem 1.15
Calculate: sin(pi/6) cos (pi) tan(pi/2)

7 giorni ago

Solved

Dial Up
Each number on telephone keypads, except 0 and 1, corresponds to a set of uppercase letters as shown in this list: 2 ABC, 3 DEF...

circa un mese ago

Solved

UICBioE240 problem 1.17
In the expression (2+5i), how does MATLAB read the expressions A = 2+5i B = 2+5*i C = both are okay Write capital letter a...

circa un mese ago

Solved

UICBioE240 problem 1.6
Find the tangent line of a right triangle given the two of the sides. So if A = [1 1] B = sqrt(2)

circa un mese ago

Solved

UICBioE240 problem 1.18
exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.

circa un mese ago

Solved

Vectorizing, too easy or too hard?
Please insert a . before any ^, * or / in the string. That's it!!

circa un mese ago

Solved

Gauss Eliminate 2-by-2 example
Use forward elimination to make the coefficient matrix, A, an upper triangular matrix, and then solve using back substitution, f...

circa un mese ago

Solved

Create an anti-identity matrix
Create an anti-identity matrix of given dimension. Examples n = 2 A = [0 1; 1 0] n = 3 A = [0 0 1; 0 1 0; 1 0 0...

circa un mese ago

Solved

Product of Array
Given an array of numbers. Get the product of the array.

circa un mese ago

Solved

Divisors of an integer
Given a number N, return a vector V of all integers that divide N. For example, N = 10 Then V=[1 2 5 10]

circa un mese ago

Solved

Matrix of almost all zeros, except for main diagonal
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...

circa un mese ago

Solved

Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

circa un mese ago

Solved

UICBioE240 problem 1.3
Find the length of a vector. So if A = [1 1 1 1 1] Then B = 5

circa un mese ago

Solved

Find the Nth Root of a Given Number
Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239

circa un mese ago

Solved

Find Index of maximum Value and maximum Value of a vector
Find the Index of the first occurrence of the maximum value in a vector and also the maximum value in the vector. Example: [...

circa un mese ago

Solved

prime test
find largest 2 digit prime number

circa un mese ago

Solved

UICBioE240 2.1
This will be useful later in the course, in conjunction to clc and clear all, what is the command to close all figure windows th...

circa un mese ago

Solved

Square root of a number
Write a code that will output the square root of x.

circa un mese ago

Solved

Matlab Basics - Switching Assignments
Switch assignments for variables x and y, for example start with x = 1 and y = 3 end with y = 1 and x = 3 Do NOT simply r...

circa un mese ago

Solved

Matlab Basics II - Velocity of a particle
A particle is moving in space, such that it's velocity is given by: <<http://s30.postimg.org/5rf1xtvj5/cody1.png>> write a...

circa un mese ago

Solved

TRON strategy toggle
Detect whether your lightcycle is on same side of existing walls as opponents lightcycle. This function is useful in toggling a...

circa un mese ago

Solved

Create a function without inputs that adds one to the output every time it is called. a = counterfun; disp(a) >> 1 ...

circa un mese ago

Solved

Check for keywords
If the entered string is a MATLAB keyword, return true else false

circa un mese ago

Solved

Persistent Usage
This Challenge is to implement the Matlab Persistent variable capability. Given a sequence of Calls to a function return the ...

circa un mese ago

Solved

Global usage
This Challenge is to utilize Global variables. Global variables are risky as the subroutine may inadvertently and unwantingly...

circa un mese ago

Solved

persistant sum
There will be 9 tests for this problem. In each test you will be provided with 2 integers n=[n1,n2], where n2 is equal to t...

circa un mese ago

Solved

Number Persistence
A number's persistence is the number of steps required to reduce it to a single digit by multiplying all its digits to obtain a ...

circa un mese ago

Solved

Implement a counter
Write a function that returns a function that counts the number of times it is invoked. Example: >> h = counter; >> h() ...

circa un mese ago