Community Profile # Ab Basit

Active since 2021

Monash University

Programming Languages:
Fortran
Spoken Languages:
English

#### Statistics

• • • • #### Content Feed

View by

Solved

Reverse the input
Given an input (n), produce an output in the reverse order with out using string variables or string function. Example x ...

12 maanden ago

Solved

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

12 maanden ago

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

12 maanden ago

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

12 maanden ago

Solved

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

12 maanden ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

12 maanden ago

Solved

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

12 maanden ago

Solved

Return area of square
Side of square=input=a Area=output=b

12 maanden ago

Solved

Given a and b, return the sum a+b in c.

12 maanden ago

Solved

Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

12 maanden ago

Solved

area

12 maanden ago

Solved

Find Logic 19

12 maanden ago

Solved

Find Logic 6

12 maanden ago

Solved

Find Logic 11

12 maanden ago

Solved

Find Logic 4

12 maanden ago

Solved

Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

12 maanden ago

Solved

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

12 maanden ago

Solved

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

12 maanden ago

Solved

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

12 maanden ago

Solved

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

12 maanden ago

Solved

Inner product of two vectors
Find the inner product of two vectors.

12 maanden ago

Solved

Find max
Find the maximum value of a given vector or matrix.

12 maanden ago

Solved

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

12 maanden ago

Solved

Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

12 maanden ago

Solved

Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

12 maanden ago

Solved

Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

12 maanden ago

Solved

Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

12 maanden ago

Solved

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

12 maanden ago

Solved

reverse string
input='rama' output='amar'

12 maanden ago

Solved

Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

12 maanden ago