Solved


Extract a specific part of matrix!
In the given matrix, extract element that have odd rows and column number. For example A=[1 4 2 3 5] B=extractodd(A);...

9 years ago

Solved


sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

9 years ago

Solved


0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...

9 years ago

Solved


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

9 years ago

Solved


Area of square
Find the area of a square whose diagonal length is given as x.

9 years ago

Solved


Create tangent function out of sine function only
Please don't use cosine and tangent functions

9 years ago

Solved


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

9 years ago

Solved


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

9 years ago

Solved


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

9 years ago

Solved


Horizontal matrix sort
Given a matrix x with n rows and m columns, return a matrix y with n rows and 2m columns, such that every row in x is sorted fro...

9 years ago

Solved


BaeIsAlwaysRight
Output yes whatever bae says

9 years ago

Solved


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

9 years ago

Solved


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

9 years ago

Solved


Speed of car travelling x meters in y seconds
What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

9 years ago

Solved


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

9 years ago

Solved


Create cosine function out of sine
Please dont use cos(x) directly

9 years ago

Solved


Calculate the centroid of a triangle
Info: https://en.wikipedia.org/wiki/Centroid Example Input: x = [0 0 1]; % x-coordinate y = [0 1 0]; % y-coordinat...

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

9 years ago

Solved


Vertical matrix sort
Given a matrix x with n rows and m columns, return a matrix y with 2n rows and m columns, such that every column in x is sorted ...

9 years ago

Solved


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

9 years ago

Solved


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

9 years ago

Solved


Tax Calculator
Calculate the tax for a given income. 10% tax is paid for any income up to $2,000. 20% tax is paid for additional income u...

9 years ago

Solved


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

9 years ago

Solved


Nth root
Nth root of a number x

9 years ago

Solved


multiply an array by its position number
You have given an array. Multiply an array by its position number

9 years ago

Solved


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

9 years ago

Solved


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

9 years ago

Solved


Project Euler: Problem 4, Palindromic numbers
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...

9 years ago

Solved


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

9 years ago

Solved


Log of a number
Write a script that will give the log of x as output.

9 years ago

Load more