Risolto


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

oltre 2 anni fa

Risolto


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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.

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


Laws of motion 1

oltre 2 anni fa

Risolto


Laws of motion 6

oltre 2 anni fa

Risolto


Laws of motion 5

oltre 2 anni fa

Risolto


Total energy

oltre 2 anni fa

Risolto


Potential energy calculation

oltre 2 anni fa

Risolto


Laws of motion 2

oltre 2 anni fa

Carica altro