解決済み


to the 2 all elements
to the 2 all elements

2日 前

解決済み


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

2日 前

解決済み


Double all elements in the array
Duplicate all elements in the array

2日 前

解決済み


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

2日 前

解決済み


Problem Set 2
Make a calculator by the four main operators (op): + - * / And the two numbers (n1, n2). Don't forget to check to divisio...

2日 前

解決済み


Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then... If it's length from 1 to 5, sz = ...

2日 前

解決済み


Switch-Case-Otherwise
You should make random numbers to 10, by 3 rows and 3 columns. Cases from 1 to 3, b = true. Otherwise, b = false.

2日 前

解決済み


NOT
If a not equal to zero, b = true, else, b = false.

2日 前

解決済み


OR
If a greater than zero or c less than 10, b = true, else, b = false.

2日 前

解決済み


AND
If a greater than 0 and n less than 10, b = true, else, b = false. (Checking a should be in one line by AND special sign in MAT...

2日 前

解決済み


Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.

2日 前

解決済み


If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.

2日 前

解決済み


If-Else
If a more than zero, b = true, else, b = false.

2日 前

解決済み


If
If a more than zero, then b = true.

2日 前

解決済み


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

2日 前

解決済み


Sum of first n positive integers
Given n, find the sum of first n positive integers Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55

2日 前

解決済み


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

2日 前

解決済み


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

2日 前

解決済み


If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

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日 前

解決済み


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

2日 前

解決済み


Find The Area Of Triangle Using Base & Height
You should find the area of the Triangle using base and height. Good Luck!

2日 前

解決済み


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

2日 前

解決済み


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

2日 前

解決済み


Square a Number
Given an input x, return y, which is equal to the square of x.

2日 前

解決済み


Convert Angstrom to Meters
Write a code that converts the angstrom unit to meters.(A is angstrom and m is meters.)

2日 前

解決済み


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return true if the triangle with sides a, b and c is right-...

2日 前

解決済み


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

2日 前

解決済み


MATLAB 101: Basic Calculator
Write a MATLAB function named basic_calculator that accepts two input numbers, A and B, and returns four distinct outputs: The ...

2日 前

解決済み


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

2日 前

さらに読み込む