Risolto


Sum all integers from 1 to 2^x
Given a number x, your function must return the summation of all integers from 1 to 2^x.

circa 5 anni fa

Risolto


Sum two matrices
Take two incoming matrices, and sum them

circa 5 anni fa

Risolto


Create a vector of the first n odd numbers (★)
If n = 10, your program should return a vector y, where y = [1 3 5 7 9 11 13 15 17 19].

circa 5 anni fa

Risolto


Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

circa 5 anni fa

Risolto


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

circa 5 anni fa

Risolto


Create a vector of n alternating ones and zeros (★★)
Given n, your output should be a vector y of numbers such that the first number is 1 and the numbers following it alternate betw...

circa 5 anni fa

Risolto


Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.

circa 5 anni fa

Risolto


Add 3 numbers
In this problem, you have to add three numbers a, b and c. Give output d = add(a,b,c)

circa 5 anni fa

Risolto


Multiply pi
Multiply pi with x!

circa 5 anni fa

Risolto


Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

circa 5 anni fa

Risolto


Temperature Conversion 1

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

circa 5 anni fa

Risolto


true or false
if the matrix has a zero, return true. else, return false

circa 5 anni fa

Risolto


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.

circa 5 anni fa

Risolto


Calculate square and cube of number
Calculate square and cube of number x

circa 5 anni fa

Risolto


Calculate the base-10 logarithm of a number
Calculate the logarithm of number x

circa 5 anni fa

Risolto


Calculate the volume of the cube.
Example n = 3; a = volume(n); a = 27

circa 5 anni fa

Risolto


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

circa 5 anni fa

Risolto


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

circa 5 anni fa

Risolto


Kinetic energy calculation

circa 5 anni fa

Risolto


square root
Find the square root (y) of an input (x).

circa 5 anni fa

Risolto


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

circa 5 anni fa

Risolto


Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


Find square of given number
Find Square of any number

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


What's Your BMI?
Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

circa 5 anni fa

Risolto


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

circa 5 anni fa

Risolto


Total energy

circa 5 anni fa

Carica altro