Community Profile # Mobina Shams

Last seen: 12 maanden ago Active since 2021

#### Statistics

• • • #### Content Feed

View by

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

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

12 maanden ago

Solved

Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

12 maanden ago

Solved

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

12 maanden ago

Solved

For a rectangle, if x is the length and 2x is width. Then find out x from the area of the rectangle?
For a rectangle, if x is the length and 2x is the width. Then find out x from the area of the rectangle? if the area is equal...

12 maanden ago

Solved

Draw 'O' !
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 . example: n=4 ans= [1 1 1 1 1 0 0 1 ...

12 maanden ago

Solved

Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

12 maanden ago

Solved

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

12 maanden ago

Solved

Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

12 maanden ago

Solved

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

12 maanden ago

Solved

Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

12 maanden ago

Solved

factorial of a number x
Factorial of a number x

12 maanden ago

Solved

Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

12 maanden ago

Solved

What percentage?
Calculate the output c as the percentage of a on b for given a and b.

12 maanden ago

Solved

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

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

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

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

12 maanden ago

Solved

Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

12 maanden ago

Solved

Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

12 maanden ago

Solved

Min of a Matrix
Return the minimum value in the given matrix.

12 maanden ago

Solved

length of a vector
Find twice the length of a given vector.

12 maanden ago

Solved

Simple equation: Annual salary
Given an hourly wage, compute an annual salary

12 maanden ago

Solved

Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

12 maanden ago

Solved

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

12 maanden ago

Solved

Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

12 maanden ago

Solved

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

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

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

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

12 maanden ago