Community Profile

# Jamal Nasir

### Almustansiryah unversity

480 total contributions since 2018

Computer Sciences Department

View details...

Contributions in
View by

Solved

Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

5 hours ago

Solved

Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

5 hours ago

Solved

MATLAB Basic: rounding IV

5 hours ago

Solved

Complex transpose
Calculate the transpose of a matrix having complex numbers as its elements without changing the signs of the imaginary part. ...

18 hours ago

Solved

Generate vector according to sign of vector
Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

18 hours ago

Solved

Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

18 hours ago

Solved

Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

3 days ago

Solved

Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

3 days ago

Solved

Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

3 days ago

Solved

3 days ago

Solved

Find x in provided equation!
x^2-2*x+1=0 This polynomial can be expressed by using each term's coefficients, such as [1 -2 1]. Using the polynomial ...

3 days ago

Solved

Find sum of negative elements in row.
Find sum of negative elements in row. Example x=[1 -5 3 4 -6 6 7 8 9 10] result = -11

3 days ago

Solved

determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

3 days ago

Solved

vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

3 days ago

Solved

Find 10's complement
Find 10's complement of a given number. An example is <http://electrical4u.com/9s-complement-and-10s-complement/ shown here>.

3 days ago

Solved

Determine whether the number is multiple of 3 or not
Let a=6 and as 6 = 2*3 which means 6 is multiple of 3; return true if a is multiple of 3,otherwise false.

3 days ago

Solved

Determine given vector is even or odd
Find the numbers of the input vector is odd or even then replace even with 1 and odd with 0 Example x = [ 3 3 4 6 1] ...

3 days ago

Solved

index of n^2 in magic(n)
input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

4 days ago

Solved

Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

4 days ago

Solved

Rainbow matrix
Create a "rainbow matrix" as described in the following examples Input = 3 Output = [ 1 2 3 2 3 2 ...

4 days ago

Solved

Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

4 days ago

Solved

Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

4 days ago

Solved

Repeat The Components of Matrix
Repeat The components of a matrix so that the size of the output matrix is double to input matrix and components are repeated ne...

4 days ago

Solved

Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

4 days ago

what is wrong with this code?
the variable temp1 is not single value. it is a vector so need to check the equation

5 days ago | 0

Why do I get the error 'Subscript indices must either be real positive integers or logicals. ' ?
this error when a negative number or real number used as indecies of matrix

5 days ago | 0

Solved

Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.

5 days ago

Solved

Duplicate a character
Duplicate a character 'n' times. Example 1: str='a' n=5 output='aaaaa' Example 2: str='*' n=3 output='***'

5 days ago

Solved

Replace every 3rd element in a vector with 4
x is a vector of undetermined length You are to replace every 3rd element with the number 4, example: x = [11 23 34 43 2 3...

5 days ago