Community Profile

# ABDELRAHMAN

### Benha University

370 2015 이후 총 참여 횟수

#### ABDELRAHMAN's 배지

세부 정보 보기...

참여 게시물
보기 기준

해결됨

Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

9달 전

해결됨

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

9달 전

해결됨

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

9달 전

해결됨

Create a vector
Create a vector from 0 to n by intervals of 2.

9달 전

해결됨

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

9달 전

해결됨

Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

3년 이하 전

해결됨

Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

약 3년 전

해결됨

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

약 3년 전

해결됨

Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

약 3년 전

해결됨

sum of non-primes
The sum of the non-primes below 10 is 1+4+6+8+9+10=38 Find the sum of all the non-primes below the input, N.

약 3년 전

해결됨

The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

약 3년 전

해결됨

04 - Scalar Equations 1
Define the variable a: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> Use this to calculate x: <<http://samle.dk/STTBD...

약 3년 전

해결됨

Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

약 3년 전

해결됨

Distance walked 3D
suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

약 3년 전

해결됨

Replace multiples of 5 with NaN
It is required to replace all values in a vector that are multiples of 5 with NaN. Example: input: x = [1 2 5 12 10 7] ...

약 3년 전

해결됨

Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

약 3년 전

해결됨

Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...

약 3년 전

해결됨

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

약 3년 전

해결됨

Logical operators and arrays: 3-input and truth table
Given 3 inputs (inputA, inputB, inputC), assign threeInputAnd with the truth table outcomes for a 3 variable logical-and operati...

약 3년 전

해결됨

Remainder
Make 'y' equal to the remainder of 27 divided by 5. When x=27 and t=5

약 3년 전

해결됨

Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

약 3년 전

해결됨

Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

약 3년 전

해결됨

Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

약 3년 전

해결됨

Rounding
Round 10.67 and make 'y' equal to that number.

약 3년 전

해결됨

Logical variables: Running late?
* Assign onTime with true if noTraffic is true and gasEmpty is false.

약 3년 전

해결됨

kmph to mps
convert kilometer per hour to meter per second

약 3년 전

해결됨

Constructing strings
* Construct a string alphaString from 'a' to endLetter, using the double colon operator. Ex: If endLetter = 'e', then alphaSt...

약 3년 전

해결됨

Given an input variable x, output a variable y that is 7 greater than x. Example: Input x = 1 Output y is 8 Input ...

약 3년 전

해결됨

Back to basics 5 - Clipboard
Covering some basic topics I haven't seen elsewhere on Cody. Copy the input string to the clipboard

약 3년 전

해결됨

02 - Vector Variables 1
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2a.png>>

약 3년 전