解決済み


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.

約5年 前

解決済み


Sum two matrices
Take two incoming matrices, and sum them

約5年 前

解決済み


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

約5年 前

解決済み


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.

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


Multiply pi
Multiply pi with x!

約5年 前

解決済み


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]

約5年 前

解決済み


Temperature Conversion 1

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


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.

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


Kinetic energy calculation

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


Find square of given number
Find Square of any number

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


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

約5年 前

解決済み


Total energy

約5年 前

さらに読み込む