解決済み


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

2年以上 前

解決済み


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

2年以上 前

解決済み


Square root of a number
Write a code that will output the square root of x.

2年以上 前

解決済み


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

2年以上 前

解決済み


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

2年以上 前

解決済み


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

2年以上 前

解決済み


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

2年以上 前

解決済み


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

2年以上 前

解決済み


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

2年以上 前

解決済み


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

2年以上 前

解決済み


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

2年以上 前

解決済み


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

2年以上 前

解決済み


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

2年以上 前

解決済み


Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

2年以上 前

解決済み


Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

2年以上 前

解決済み


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

2年以上 前

解決済み


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

2年以上 前

解決済み


Max of a Vector
Write a function to return the max of a vector

2年以上 前

解決済み


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

2年以上 前

解決済み


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

2年以上 前

解決済み


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

2年以上 前

解決済み


the average value of the elements
Calculate the average value of the elements in the array

2年以上 前

解決済み


calculate the length of matrix
input 1 array, calculate the length

2年以上 前

解決済み


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

2年以上 前

解決済み


Laws of motion 1

2年以上 前

解決済み


Laws of motion 6

2年以上 前

解決済み


Laws of motion 5

2年以上 前

解決済み


Total energy

2年以上 前

解決済み


Potential energy calculation

2年以上 前

解決済み


Laws of motion 2

2年以上 前

さらに読み込む